Probably sooner than that when Iran would not play ball as a transit route to Russia in WWII. Iran has been a meddling cock-up ever since. Carter thought the clerics would be better than the Shah’s perceived human rights abuses.
At the time, Khomeini was thought of as a moderate, and the initial government after the Revolution was fairly moderate.
But within a year, almost all the moderates were killed.