
Dig your own grave
Negative Outcome
Used when an action will likely lead to a bad result, often by one's own doing. 
Self-Inflicted Trouble
It emphasizes trouble that you bring onto yourself, not caused by others. 
Idiomatic Caution
Used to advise someone against a course of action that seems harmful. 