Thats a good rationale, but in the case of USA it is useless, usa can level Iran even before the nuke hits the ground, Iran cannot defeat usa, just like Pakistan cannot defeat usa, in that case, the best option you have is be good friends with other super power, like we are with china, you should try to make good relations with Russia. As far as Israel is considered well they are not US, a use of Nuke is going to badly cripple their economy, world will do with them what they have done to Iran, you can easily deter them by making good friends with other countries in ME. And their army can easily be contained, they are not as good as people think.
Or you can just ask for Pakistan's help?
we can probably fight Israel if we get the money