
Be hoist/hoistedby/with your own petard
Origin Context
Originates from Shakespeare's 'Hamlet', where 'petard' was a small bomb. Used metaphorically for self-defeat. 
Archaic Usage
The phrase is old-fashioned; use it to sound intellectual or humorous when describing self-caused downfalls. 
Irony Emphasis
Best used to highlight irony, especially when someone's schemes backfire on themselves. 