No one dares to attack North Korea because they have nukes. Ayatollahs surely want the same but didn’t have enough time/resources.
Current stance on negotiations is a miscalculation IMHO, they likely wanted for negotiations to drag on for a long time.