at death's door

[at death's door] {adj.} or {adv. phr.} Very near death; dying.

He seemed to be at death's door from his illness.