Now that I think about it, maybe Iran's constant measured behavior toward Israel and US dumb provocations also has something to do with China (and Russia), and not only with internal social potential problems, division, and economic matters within Iran itself, as well as Iran growing more and more in contrast to Israel, in all areas, so it making it make sense to be more strategic and think in the future terms.
For China, it makes more sense for the US to keep constant resources and focus engaged in the Middle East with Iranian 'proxies', instead of Iran itself just acting and slapping all of their bases and Israel out of existence, then the US realizing that it has nothing to do there anymore, as it is very inefficient, if downright impossible, for them to wage actual war with Iran, and rerouting everything to Russia and China again instead.
Maybe China and Russia told Iran to be measured. For them, the US should have constant pressures there to deal with, on a different part of the world altogether, which is allowing Russia more breathing space in Ukraine, and China to grow in peace for the next few critical years preparing for their conflict over Taiwan and divided attention of the US there once the conflict finally starts. They wouldn't want all of the US infrastructure and ships there being blown there in the short term. They want the US to constantly have to bleed resources there, have false hope.
In the longer-term, the global geo-economic and geo-political balances are moving against Israel eg.
1. As per the latest surveys, youth in the USA sympathise with the Palestinians, whereas the old support Israel
2. Currently the G7 account for 40% of global GDP, half of which is the USA. PWC forecast that by 2050, these numbers will drop in half.
3. The Muslim world growing from 2 billion to 3 billion people
4. China being 2x the US economy by 2030, as per the IMF forecast
You get the idea
---
Because Israel has nuclear weapons, it isn't realistic for Israel to be wiped out.
But it is possible for Israel to become a small, isolated and impoverished state under siege - if Israel continues being a nasty colonial state in Gaza and the West Bank.
In retrospect, we can see that the refounding of Israel in 1947 was a huge historical mistake. Israel was supposed to be a homeland safe for the Jews. But Israel could only come into existence through war and by taking the land and homes of the existing Palestinian inhabitants, many of whom are still living in refugee camps in Gaza and the West Bank. So Israel is surrounded by unfriendly or hostile borders.
If Israel acted more rationally, they would understand that true security doesn't come from having the largest military and beating on your neighbours. It comes from having good relations with your neighbours. Particularly since the long-term trends are against an Israel which relies on the US.
But for that to happen, I see a minimum requirement for Israel to end the military occupation of Gaza and the West Bank, and also the removal of 500,000 Jewish colonists from the West Bank.