Paint-oneself-into-a-corner Definition

verb

(idiomatic) To create a predicament or problem for oneself; to do something that leaves one with no good alternatives or solutions.

Wiktionary