Fetching details from the dictionary...
to cut one's own throat; to dig one's own grave; to cause oneself harm; to bring ruin on oneself