Paint (oneself) into a corner phrase
To get oneself into a situation in which there is no way out, or that causes them harm or difficulty.
A: Mary spent all her money on food and clothes yesterday. And now, she is unable to pay the electricity bill. B: Oh, she painted herself into the corner again!
I really painted myself into the corner when I waited until the last minute to study for the exam.
You are painting yourself into the corner by delaying writing that essay until the last minute.
The verb "paint" must be conjugated according to its tense.
This idiom employs the visual picture of a person painting the whole floor save the corner where they stand, so that they cannot leave without walking on wet paint.
Extremely ugly; unlovely; unattractive
I hate frogs because they’re as ugly as sin.