Preventing death

How could I prevent my death at 1? Like when I get damage that would kill me it instead leaves me on 1 hp

Continue to help post