Um, they did.
Even before President Trump took out their General Suleimani.
President Trump took out Sulemani because Iran was planning to attack our embasssy in Iraq and go after several locations where American troops were in that country. That information was obtained through espionage with the help of Israel. I wouldn’t call that behaving themselves.