teach someone a lesson idiom
C2 教训(某人);使吸取教训
A person or experience that teaches you a lesson improves your future behaviour by making you experience the bad effects of your actions.
Having my car stolen really taught me a lesson - I'll never leave it unlocked again. 我的车被盗的确给了我一个教训——我再也不会不锁车了。
She decided to teach the boy a lesson. 她决定教训那个男孩一顿。