on death's doorstep

Etymology
Probably a shortening of the phrasal verb.

Phrase

 * 1) Almost dead.