paint yourself into a corner
To make yourself look like an idiot with no way out; you're stuck and everyone knows it
He told his boss he’d be back in ten minutes, but now it’s been three hours and he still hasn’t come back
She said she could handle the whole project alone, but now she’s crying on the floor
He tried to sneak out of class but got caught wearing a cape and a chicken suit