IDIOMS

dig one's own grave

(idiomatic) To behave in a way that is likely to have future negative effects on oneself.