Honestly, that whole idea is the sort of passive-aggressive "let it happen but punish them" approach that was all too common early on in the hobby; all it really teaches players is that the GM is an adversary, not a partner, and its fortunately less common now (but still rears its head in a way that shows it hasn't entirely faded).
IMO, any DMing approach that involves "teaching the players a lesson.." needs to be eliminated with extreme prejudice.
Last edited: