E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
Two can play at that game. If you claw me I can claw you; if you throw stones at me I can do the same to you. The Duke of Buckingham led a mob to break the windows of the Scotch Puritans who came over with James I., but the Puritans broke the windows of the dukes house, and when he complained to the king, the British Solomon quoted to him the proverb, Those who live in glass houses shouldnt throw stones.
You are making game of me. You are chaffing me. (Anglo-Saxon, gamen, jest, scoffing.)