be on last legs

be on your last legs

1. (informal) to be going to die soon It looks as if her grandfather's on his last legs now.
2. (informal) to be very tired, especially after a lot of physical activity or work I'd just done fifteen miles and I was on my last legs.
See also: last, leg, on