(Have One’s) Back Against the Wall

What does the idiom “(have one’s) back against the wall” mean?

Definition: Have few choices, be cornered

Example: I’m really sorry I had to lay Jason off, but my back was against the wall—if I didn’t, the company would have shut down our whole division.