On brink of death, there is a slight chance that you will instead regain 10k to all three points (hp, sp, ep), thus avoiding death.
Few races have the ability to escape death and so does few items also grant this ability.
See list of things that grant avoid death.