Looking for the meaning or definition of the word it takes one to know one? Here's what it means.
Proverb
(colloquial) Assertion that an insult that was made by the party to whom the phrase is directed is also true of that party. Like "you recognize this bad thing in me because you have it also".