+0
Hi.

I am looking for an idiom expressing the meaning in the following situation.

When somebody is teasing or humilating you because you are in trouble or you have made an embarrasing blunder and you want to use an idiom telling him/her that don't tease me it might happen to you one day.
+1
I can't think of an actual idiom, but here are a couple of suggestions as to what you could say:

This could be you, you know.

You might be next.

It won't be so funny when it happens to you.
+0
hrsaneiWhen somebody is teasing or humilating you because you are in trouble or you have made an embarrasing blunder and you want to use an idiom telling him/her that don't tease me it might happen to you one day.
I can't judge from your description exactly how appropriate each might be, but here are a couple of possibilities.

Be careful what you say. Some day the shoe will be on the other foot.
Some day your words will come back to haunt you.
Just remember that turnabout is fair play.
Be careful. What goes around comes around.

CJ
Students: Are you brave enough to let our tutors analyse your pronunciation?
Comments  
"What goes around, comes around."

"Sow the wind, reap the whirlwind."
 CalifJim's reply was promoted to an answer.
Teachers: We supply a list of EFL job vacancies