Law of holes

The law of holes, or the first law of holes, is an adage which states: "If you find yourself in a hole, stop digging." It is used as a metaphor, warning that when in an untenable position, it is best to stop making the situation worse.