Well, Olivia, sorry you had a bad experience. I suppose that what you encountered can happen anywhere, but that doesn't make it any better for you. However, would you recommend Turkey, with the many bombings happening every now and then? Iran is no heaven for sure, but it has no terrorism... so it depends on what you consider
I will just add that people recommending Iran are not just Iranians advertizing their own country, but mostly foreigners, even solo female travelers, who were wramly welcome. But you will find scammers and dishonest taxi drivers everywhere.
Safe and happy travels to all!