Ill refer you back to Jesus answer to the question.
Christ also answers the question in these passages:
John 14:15
Matt 19:16-17
Matt 10:22
Matt 24:13
Mark 8:35
Matt 7:21 - not everyone saying “Lord, Lord” will inherit the kingdom of heaven
Matt 24:13 - those who persevere to the end will be saved