Under pressure, Iran walks a tightrope between diplomacy and deterrence