(27) And God created man in His image, in the image of God He created him; male and female He created them.
(ה) וּשְׁמַרְתֶּ֤ם אֶת־חֻקֹּתַי֙ וְאֶת־מִשְׁפָּטַ֔י אֲשֶׁ֨ר יַעֲשֶׂ֥ה אֹתָ֛ם הָאָדָ֖ם וָחַ֣י בָּהֶ֑ם אֲנִ֖י יְהוָֽה׃ (ס)
(5) "You shall keep My laws and My rules, and humankind shall do them and live by them: I am the Adonai."
(16) Do not stand idly by the blood of your neighbor: I am Adonai.
It implies that there are circumstances where one must keep Shabbat and circumstances where one must break it,
i.e. TO SAVE A LIFE.
(ה) שכל המאבד נפש אחת מישראל. מעלה עליו הכתוב כאילו איבד עולם מלא. וכל המקיים נפש אחת מישראל מעלה עליו הכתוב כאילו קיים עולם מלא.
(5) Anyone who destroys a life is considered by Scripture to have destroyed an entire world; and anyone who saves a life is as if he saved an entire world.