Iran is in this position because it is run by fools. Iranian leaders have been running their mouth nonstop about their capabilities and how they will destroy Israel. Isn’t it better to stop talking shit and instead focus on developing? Stop provoking and antagonizing your enemies.
Iran put all their cards into their axis of resistance instead of building up their military getting proper fighter aircraft and enough advanced air defense systems. It thought its missile capabilities was enough to deter its enemies while having nothing to confront Israeli F35.
Iran was constantly reactive instead of taking the initiative and holding the escalation ladder. It had the axis of resistance and failed to even use them. It just let them get picked off one by one. It showed that Iran was weak and did not want a conflict.
Iran should’ve from the beginning tried to repair relations with the U.S. and build its economy and military. It should have compromised because it is evidently clear it did not want to engage in a war.
They got involved in Syria, Yemen, etc and only hurt their relations with their neighbors. They should have just focused on developing their country and providing a good life for their people instead of engaging in conflicts and putting a bullseye on themselves.
Edit:
China is many times stronger than Iran yet doesn’t behave in this way. You have to play the geopolitical game. It has its own issues with Taiwan but it doesn’t provoke others against it.