Answer: Jesus says in His teaching that only those people who DO, or OBEY, the Will of the Father Who is heaven will enter the kingdom of heaven. We cannot perform our actions for good while following false teachers and be pleasing to God. Those in God's kingdom OBEY the commands He has given to enter that kingdom, and then they continue to obey Him while enjoying the privileges of the kingdom of God, (verses 21, 22 and 23).
MORE INFORMATION AND/OR OTHER SCRIPTURE REFERENCES:
Matthew 5:19-20: [Jesus said,] "Anyone who breaks one of the least of these commandments and teaches others to do the same will be called least in the kingdom of heaven, but whoever practices and teaches these commands will be called great in the kingdom of heaven. For I tell you that unless your righteousness surpasses that of the Pharisees and the teachers of the law, you will certainly not enter the kingdom of heaven."
Matthew 6:10: [Jesus, praying before the establishment of the kingdom, said,] "Your kingdom come, Your Will be done on earth as it is in heaven."
Matthew 28:18-20: "Then Jesus came to them and said, ‘All authority in heaven and on earth has been given to Me. Therefore go and make disciples of all nations, baptizing them in the Name of the Father and of the Son and of the Holy Spirit, and teaching them to obey everything I have commanded you. And surely I am with you always, to the very end of the age.'"
John 14:23-24: "Jesus replied, ‘If anyone loves Me, he will obey My teaching. My Father will love him, and We will come to him and make Our home with him. He who does not love Me will not obey My teaching. These Words you hear are not My Own; they belong to the Father Who sent Me.'"
2 Thessalonians 1:8: "He will punish those who do not know God and do not obey the Gospel of our Lord Jesus."
1 Peter 4:17: "For it is time for judgment to begin with the family of God; and if it begins with us, what will the outcome be for those who do not obey the Gospel of God?"