The ordinances of the temple and the covenants you make there are key to strengthening your life, your marriage and family, and your ability to resist the attacks of the adversary. Your worship in the temple and your service there for your ancestors will bless you with increased personal revelation and peace and will fortify your commitment to stay on the covenant path.
President Russell M. Nelson, "As We Go Forward Together", Liahona, April 2018
What is the covenant path? How do we get on it? Then how do we stay on it once we're on it?
As Nephi tells us, the way to get on the path in first place, to open the gate, is to be baptized as Christ was baptized, by someone who has the divine authority to do just that. Someone who has God's authority is critical. Just because someone believes in God and teaches His word, does not mean he has the authority from God to baptize.
Now, after baptism, how do we stay on the path? We don't need to be perfect to travel the path. We will stumble. We will fall. Does not mean we're no longer on the path.
The key to staying on the path is to honestly and intentionally try. We have to do the work. We have to put in the effort. We have to strive to become better. We have to get up when we fall.
That's what enduring to the end means. "Endure" means to put effort in, to continue on despite trials and challenges. Heavenly Father is looking for effort and desire. He's not looking for the end result.