It is allowable to retaliate against an enemy's dirty tricks by using the same ones against them.
1755, Dudley Bradstreet, The Life and Uncommon Adventures of Captain Dudley Bradstreet, S. Powell, Dublin, p. 216:[1]
My Endeavours were used to perplex their Thoughts and Judgments; I told them, that at next Wednesday’s Dinner I hoped we would be informed who were to rule the Roast, that hitherto honest Men were kept from shuffling the Cards, because they would cast Knaves out from the Company of Kings, but we would make them know, Turn about was fair Play, and that two and three made five, though many Words did not fill a Bushel.
1795, Archibald MacLaren, The Scottish Volunteers, p. 23:
No, I won't, — I went to my bed last, — let my bed come to me now, turn about is fair play.