"The only question asked in the judgment will be, “Have they been obedient to My commandments?” Petty strife and contention over questions of no importance has no part in God's great plan. Those who teach the truth should be men of solid minds, who will not lead their hearers into a field of thistles, as it were, and leave them there. GW 315.1"
"Not every one that saith unto me, Lord, Lord, shall enter into the kingdom of heaven; but he that doeth the will of my Father which is in heaven."
Both passages emphasize obedience to God's will/commandments as the key to entering the kingdom of heaven.