turn the tables on someone idiom
扭转局面,转而占(某人的)上风
to change a situation so that you now have an advantage over someone who previously had an advantage over you
She turned the tables on her rival with allegations of corruption. 她指控对手腐败,从而扭转了对自己不利的局面。