This is a mistake on the part of the Iranian government.  It is understandable that they want to stop the demonstrations, but this tact will only harden both side’s positions.