In desperate circumstances.
At the point of death.
Having an incurable condition that will lead to death.