自掘墳墓

Idiom

 * 1) to court self-destruction; to dig one's own grave