On your beam ends
Hard up; in a bad situation.
The beams here are the horizontal transverse timbers of ships. This nautical phrase came about with the allusion to the danger of imminent capsize if the beam ends were touching the water. This dates back to the 18th century and is cited in a 1773 issue of The Gentleman's Magazine (why isn't there a magazine for gentlemen these days? They have them for ladz and ladetz):
"The gust laid her upon her beam-ends."
The figurative use came soon afterwards, in Captain Marryat's The King's Own, 1830:
"Our first-lieutenant was..on his beam-ends, with the rheumatiz."
See other Nautical Phrases.