langtrap

dig a hole for oneself

v.
(informal, idiomatic) To take an action or create a situation from which it is difficult to extricate.