With accent marks:
Не рой я́му друго́му, сам в неё попадёшь.
Do not dig a hole for another one, you will fall into it yourself.
This proverb is very old and has its analogues in many languages. It is also found in the text of the Bible.
Its meaning is very clear: do not cause trouble to another one, the circumstances can turn against you.
Other Russian proverbs
One head is good, but two ones are better.
The demon is not as scary as he is depicted.
Don’t wave your fists after the fight.
You can't hide an awl in a bag.
What goes around comes around.
Being a guest is good, but being at home is better.
Do not look at a given horse's teeth.
You are greeted by your clothes but bid farewell by your mind.