teach [sb] a lessonv exprverbal expression: Phrase with special meaning functioning as verb--for example, "put their heads together," "come to an end."
figurative (punish and deter [sb]) (比喻)
给某人上课,训某人一顿
The witch taught the prince a lesson by turning him into a frog.