以其人之道，還治其人之身

Etymology
Originally used by Chinese philosopher :

Idiom

 * 1) to pay back with the opponent's own method; to give the enemy a taste of their own medicine; an eye for an eye