A harsh crackdown is under way in Iran as leaders see a current wave of antigovernment protests as a threat to the regime.