Be on (its/one's) last legs phrase
(Typically said of a machine) To almost break down, to lose the range of functions that it once had.
I was conned into buying a washing machine that looked new, but in fact, it was on its last legs.
I have used this dryer for five years, and recently it has shown signs of working improperly. I guess it is on its last legs.
They argued and culminated in beating each other. I bet this marriage is on its last legs.
(Of a person) To be completely tired or nearly die.
Judging by his shortness of breath, he is properly on his last legs.
They were rescued by the helicopter when they were on their last legs.
Said when you are too tired to do something
Completely fatigued.
Used when one suffers from mental or emotional exhaustion
Very tired as you've used too much cannabis.
The origin of this phrase is not clear.