(I say this with no sympathy to the Iranian government, just looking at reality.)
(I say this with no sympathy to the Iranian government, just looking at reality.)
I feel like we have enough examples to be clear on this now, would you rather your country be treated by the major powers like Libya, Ukraine, Iraq... Or like North Korea.
You could easily argue that the dictatorship is in a stronger place after getting nukes, but the act of building nukes have destabilized many regimes, including Iran. Iran could have been wealthy like UAE and the Saudis, with regional influence similar to Turkey, instead of being the punching bag of US and Israel.
The years leading up to and immediately following successful acquisition were tenuous and it seemed like they were destined to become a global pariah if not a failed state. And yet now, they are a regional power.
So if anything maybe Iran just missed its window. Now with the US seemingly ready to enter a forever war with no defined objectives other than nuclear deterrence it's presumably too late, but maybe a more competent regime could have pulled it off in time.
It was an active choice not a missed window
If we look at reality we see China is very active in Africa, and so also has undersea network cables (PEACE & 2Africa). If China allows this precedent to occur, they encourage any African nation nearby such cables to pull the same tricks on them. Hence a rational player in the shoes of China wouldn't allow this to happen. China should hint Iran that perhaps it should start addressing its real problems instead of making their problems someone else's problem again.