Wiktionary
it takes one to know one
prov. (context colloquial often childish English) Assertion that an insult that was made by the party to whom the phrase is directed is also true of that party.