on your/its last legs

on its last legs

Of a machine, near a complete breakdown or loss of functionality. Judging by all that noise coming from her car, I'm pretty sure it's on its last legs. The blender stopped working again today—it must be on its last legs.
See also: last, leg, on
Farlex Dictionary of Idioms.

on its last legs

If something is on its last legs, it is old or in a bad condition and will not be able to be used much longer. The dressing-gown I've worn for years is on its last legs. By the mid-1980s, the copper industry in the US was on its last legs.
See also: last, leg, on

on your last legs

1. If you are on your last legs, you are exhausted. Jackson collapsed as he left the boxing ring, clearly on his last legs.
2. If someone is on their last legs, they are about to die. There was an enormous variety of patients — people who looked in perfect health and people who looked as if they were on their last legs.
See also: last, leg, on
Collins COBUILD Idioms Dictionary, 3rd ed.

on your last legs

near the end of life, usefulness, or strength.
1987 Eric Newby Round 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.
See also: last, leg, on
Farlex Partner Idioms Dictionary

on your/its ˌlast ˈlegs

about to die or stop functioning very soon; be very weak or in bad condition: This photocopier is on its last legs.
See also: last, leg, on
Farlex Partner Idioms Dictionary

on its last legs

verb
See on one’s last legs
See also: last, leg, on
McGraw-Hill's Dictionary of American Slang and Colloquial Expressions
See also:
  • be on its last legs
  • on its last legs
  • drive (something) into the ground
  • keep it down to a dull roar
  • put (something) through its paces
  • big noise
  • a big name/noise
  • a big noise
  • go bang
  • noise