Meaning of the word "if you play with fire, you get burned" in English

What does "if you play with fire, you get burned" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

if you play with fire, you get burned

US /ɪf ju pleɪ wɪð faɪər, ju ɡɛt bɜːrnd/
UK /ɪf ju pleɪ wɪð faɪə, ju ɡɛt bɜːnd/
"if you play with fire, you get burned" picture

Idiom

if you do something dangerous or risky, you will eventually suffer unpleasant consequences

Example:
Investing all your money in such a volatile market is risky; if you play with fire, you get burned.
He was caught cheating on his taxes, proving that if you play with fire, you get burned.