on your last legs near the end of life, usefulness, or strength.
1987Eric NewbyRound Ireland in Low Gear It is certainly difficult to imagine how anyone who is in any way infirm, and some of the pilgrims who make the climb are literally on their last legs, can reach the top.