Occasionally, it is necessary to speak sharply—not out of enjoyment in giving mussar (rebuke), but in the hope that it will bring positive change. Penalties for students who are tardy depend on the impression it makes and what can be realistically expected as a result.
https://www.torahrecordings.com/rebbe/igroskodesh/011/007/3385