The British Foreign Office, advise against all but non-essential travel there, and advise against travel all together to large parts of it.
The US State Department simply advises do not travel there at all. In fact their advice includes 'make a will' if you disregard their warning.
Is there even a US diplomatic or consular presence in Iran at all? If you get in trouble, you are on your own, or maybe the Swiss will help you.
Even the more religious individuals I've encountered, were always very open and pleasant to converse with. My opinion was that there is a big divide between the Iranian I've encountered on my tour, and the position of the Iranian government.
Actually, I've found the people much more pleasant than in any other country I've been a tourist in Which includes the UK and the US.
If you're from the US or the UK I believe you're going to have some trouble getting in, and diplomatic assistance will not be done by your own embassy, but by a friendly one. Once you're in, you shouldn't have to worry about anything other than enjoying the beautiful country.
All this is except the obligatory headscarf situation. Which is really bad. If you can personally get over that, it's a great place to visit.
Adapt clothing and behavior to local customs as well as religious and national sentiments. Women are subject to a strict code of conduct, failure to comply with which can lead to difficulties with the police, including arrest.
1: https://www.eda.admin.ch/countries/iran/en/home/travel-advic...