What is the meaning of [If you’re in a hole, stop digging]

“When you have landed yourself in trouble, such as through a foolish remark or action, do not say or do anything to make it worse.”,As “If you are in a hole, stop digging.” Moore, Merton (December 4, 1920). “Stop Digging—Climb”. Holstein-Friesian World XVII (49); 34. Retrieved on 2018-11-11.,Variant; Stew it and it will only stink more.