learn your lesson
US /lɜrn jʊər ˈlɛsən/
UK /lɜrn jʊər ˈlɛsən/

1.
吸取教訓, 得到教訓
to suffer a bad experience and understand from it not to do the same thing again
:
•
After losing all his money, he finally learned his lesson about gambling.
輸光所有錢後,他終於吸取了教訓,不再賭博。
•
If you don't study, you'll fail the exam and learn your lesson the hard way.
如果你不學習,你會考試不及格,然後吸取慘痛的教訓。