Generally, Iran is safe for tourists. Iran has a complicated history and sometimes protests break out (as in recent times) but the crime rate in Iran is similar to, say, the UK. If you assimilate and stay away from politics and protests you are less likely to come into trouble.