[give one some of his] or [her own medicine] {v. phr.}
To treat someone the way he or she treats others (used in the negative).
* /The gangster beat up an innocent old man, so when he resisted arrest, a policeman gave him a little of his own medicine./