the hard way
idiomPart ofhard
the hard way — idiom
1. Learning something through unpleasant experiences or mistakes.
1.idiom
Definition
Learning something through unpleasant experiences or mistakes.
Example
He learned the hard way not to touch a hot stove.
I found out the hard way that lying has consequences.