idiom
learn the hard way
учить что-то через опыт, особенно через ошибки
Meaning
to learn something through experience, especially through making mistakes
Example
He **learned the hard way** that honesty is the best policy.
Он **учил это тяжелым путем**, что честность — лучшая политика.