Carter was always an ideologue, and he’s doubled down repeatedly the older he got.
He still has yet to grasp that his ideology is wrong, and produces bad results. He opposed the Shah because of the Shah's secret police who rounded up, tortured and killed dissenters.
In a 30 year period, the Shah's secret police executed about 3,000 dissidents. The Ayatollah Islamic nutbag government executed nearly 10,000 people that very first year.
The Iran/Iraq war (1 million dead.) Was the result of the Iranian government being destabilized. While Iran was a US Ally, Iraq would never have dreamed of attacking it, but once it became an enemy of the United States, Saddam turned his eyes eastward.
Carter was an absolute disaster, and his legacy of stupidity is still endangering and injuring the world to this very day. If Iran eventually uses a nuclear weapon to kill hundreds of thousands, if not millions, the fault will fall primarily on Barack the Stupid, but the best supporting actor prize goes to Jimmy the Dunce Carter.