Vayikra18:5

וּשְׁמַרְתֶּם אֶת־חֻקֹּתַי וְאֶת־מִשְׁפָּטַי אֲשֶׁר יַעֲשֶׂה אֹתָם הָאָדָם וָחַי בָּהֶם אֲנִי יְהוָה׃

You shall keep My statutes and My judgements, which a person shall do and live by them. I am the Eternal.

Vayikra 18:5

וּשְׁמַרְתֶּם אֶת־חֻקֹּתַי וְאֶת־מִשְׁפָּטַי

Vayikra / Leviticus 18:5 · Remez

Vayikra 18:5

וּשְׁמַרְתֶּם אֶת־חֻקֹּתַי וְאֶת־מִשְׁפָּטַי אֲשֶׁר יַעֲשֶׂה אֹתָם הָאָדָם וָחַי בָּהֶם אֲנִי יְהוָה׃

You shall keep My statutes and My judgements, which a person shall do and live by them. I am the Eternal.

Remez רֶמֶז

The future tense

A promise can be read as something that will come true some day later. Or as something you are walking toward right now.

Sefat Emet: Rashi says "in the world to come", and Ramban that by his deeds a person earns life, like Eliyahu (Elijah) and Chanoch (Enoch). Before the sin of the first man everything could be fulfilled without death, and so it will be in the future. That is why it says "shall do", in the future tense. Ba'al HaTurim: right after "live by them" it says "do not come near to uncover nakedness", because for the sake of life one may break almost any commandment, but not this ban.

How Sefat Emet and Kitzur Ba'al HaTurim explain it

Sefat Emet Which a person shall do and live by them

Rashi wrote: in the world to come, for in this world he dies. And Ramban, of blessed memory, wrote that by deeds a person earns life, and Eliyahu and Chanoch prove it, see there. And one may add: surely because of sin death became needed, and without death not everything can be mended. But before the sin of the first man, and as it will be in the future, surely everything can be fulfilled without death. And this is the very will of the Eternal when He says "you shall do My judgements" and "which a person shall do and live by them". That is: strive to keep and do the Torah and the commandments until a person does them so that he can live by them in this world too, for everything depends on our service. That is why it says "shall do", in the future tense: surely so it will be, soon, in our days.

Kitzur Ba'al HaTurim And live by them

And next to it is said: "do not come near to uncover nakedness" (Vayikra / Leviticus 18:6). To say: although I commanded "and live by them", do not come near to uncover nakedness, because for forbidden intimacy a person must let himself be killed rather than transgress.

Takeaway

Of Eliyahu it is said that he went up by a whirlwind into heaven (Melachim II / II Kings 2:11), and of Chanoch: "and he was not, for the Almighty took him" (Bereshit / Genesis 5:24). Of neither does Scripture say that he died.
There are three bans for which one must rather die than transgress: the worship of other gods, forbidden intimacy and murder (Sanhedrin 74a).