Find the word definition

Wiktionary
box oneself into a corner

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