back to the wall
In a trap, with no way to escape; in bad trouble.
The soldiers had their backs to the wall.
He was in debt and could not get any help; his back was against the wall.
The team had their backs to the wall in the second half.