I. phrasal
: at or near the end of one's resources : on the verge of failure, exhaustion, or ruin
the old car was on its last legs
II. phrasal
: near death, extinction, or defeat
looking like he was on his last legs — J.T.Farrell
evident to any impartial observer that colonialism in Asia was on its last legs — Yale Review