box oneself into a corner

Verb

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