Backs against the wall

Posted by Paul Guthrie on May 04, 2000

My understanding of this phrase is that basically it means to be in a very difficult position.
Does anybody know the origin of this phrase?
(My son's suggestion was maybe it comes from from being lined up against a wall about to be shot by a firing squad?!)