on its last legs - definition and synonyms

phrase informal
  1. old, in bad condition, and not likely to continue working

    My phone battery was on its last legs and kept beeping.

See also main entry: last