dig one's own grave
Seriously harm oneself, cause one's own ruin or downfall. For example, If Sam pursues that course, he'll be digging his own grave. [First half of 1900s]
Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.