Wiktionary
takes one to know one
phr. (context childish English) (non-gloss definition: A childish retort to a negative accusation, implying the accuser shares the fault)