(One’s) back is against the wall

One is in a very difficult position

The man’s back was against the wall and there was nothing that he could do to change the situation.