Russia-Ukraine case made the whole world go crazy due to gas/oil and price increase in anything that touches fossil fuels.
Imagine what would happen globally by Iran settings mines in Straits of Hormuz or rain missiles on countries that are hosting US bases (Oil producers) in retaliation and pressuring global economy in order to maximize the effect of the war.
The maximum Israel can do is to slow down the progress of whatever Israil think Iran is doing, is to conduct sabotage missions in Iran, killing scientists, military commanders, cyberattacks or lobbying as much as possible in other countries for more sanctions etc and so far that has not been effective. In matter of fact, it has backfired.
All that said it's very unlikely there will be an attack on Iran. The US would much prefer to see the regime fall. That doesn't seem super likely either but attacking Iran will probably just strengthen the regime.
i.e. it would not be a Israeli mission, it would have to be a joint mission. Or in other words America would not be able to say "Israel did it", America would have to be fully on board - and perhaps help.
And that's not something small, that's why it hasn't happened yet.