A good-natured parent knows that children sometimes need punishing but also knows that, when it…

A good-natured parent knows that children sometimes need punishing but also knows that, when it comes to the crunch, the child will be let off with a warning. Can the parent undertake any pre-commitment to make the threat of punishment credible?