be on its last legs

be on its last legs

  (informal)
if a machine is on its last legs, it is in bad condition because it is old and it will probably stop working soon We've had the same vacuum cleaner for twenty years now and it's on its last legs.
See also: last, leg, on