idiom
on one’s last legs
Meaning
to be near the end of one’s strength or life
Example
After the long hike, we were all **on our last legs**.