«Paint yourself into a corner»: Meterse en un buen lío/meterse en un berenjenal

To put oneself in a situation with no visible solution or alternative; to get into a mess