learn a hard lessonAn idiomatic expression meaning to suffer unpleasant consequences or get into trouble, often used as a warning. Literally, it means to have a painful experience.
JA: そんな無茶をすると、いつか痛い目にあうよ。
EN: If you keep taking such risks, you'll learn a hard lesson someday.