Judaism has a lot of rules:
https://en.wikipedia.org/wiki/613_commandments
But the sanctity of life trumps virtually all of them, so you can almost always violate a commandment to save a life.
https://en.wikipedia.org/wiki/613_commandments
But the sanctity of life trumps virtually all of them, so you can almost always violate a commandment to save a life.
https://www.sefaria.org/Sanhedrin.75a.2?lang=bi&with=all&lan...
definitely prohibited
EDIT: actually this gemara is an example of saving ones own life, so maybe not