What is the meaning of At_death's_door?

About to die; in a life-threatening state of health.

Source: wiktionary.org