in case of iran it's more of the case of who will bother to fight it? invading iraq to maybe invade iran in the future is a been there done that kind of thing. being butt buddies with pakistan to get the other angle is possible but it'll piss off indians and that's just not worth it. naval invasion from saudi arabia will have to, after taking the coastal area, go through some of the worst terrain you can imagine to reach the capital. the route that was wargamed in the early 2000's assumes a port in abkhazia to be open. it won't be. they can exchange rockets and drones with israel forever while most likely warning each other about where they'll strike so neither side loses too much(they gain legitimacy internally)
Poland