crack the whip

[crack the whip] {v. phr.}, {informal} To get obedience or cooperation by threats of punishment.

If the children won't behave when I reason with them, I have to crack the whip.