Term: extremis
Example: as i started to fall asleep, i felt my conciousness slip away, and felt as if i was in extremis
Definition: the space between life and death