Something that is close to (time varies based on one's opinion) or ready to break/die.
Man I love my dog!
Had him since I was 6.....
Taking medicines, just laying there......
He is on his Last Leg now.....