What does 'On your last legs' mean?

If someone's on their last legs, they're close to dying.

Idioms similar to 'On your last legs'

See also: