Moshe kept writing the words of Torah in a book until it was completed. He gave it to the cohanim, the descendants of Levi, who carried the Ark of the Covenant. He told them to put the book next to the Ark as a testimony to the stubbornness of the people. At the end of every seven years, at the sh’mittah, when Isra’el gathered for Sukkot, he told them to read the words of Torah for all Isra’el to hear. Along with all the foreigners in their cities, they were to hear, learn, and fear Adonai. They were to guard all the words of Torah in order that future generations would learn to fear the Elohim of Isra’el.
When we ‘fear’ God, we will be ‘morally reverent’ to His laws, commandments, Torah. We will obey Him and receive His righteousness and be ‘kept alive.’ If we do not yirah Him, we will live an immoral life, rejecting everything He gave us ‘for our own good’ and ‘die.’