Meaning of the word "do wrong" in English

What does "do wrong" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

do wrong

US /duː rɔŋ/
UK /duː rɒŋ/

Idiom

to act in a way that is morally or legally incorrect

Example:
He was punished for doing wrong.
I hope I didn't do wrong by telling her the truth.