This passage is very important to know about children.
Children are always pure. If they die when they're just giving birth, they will go to heaven because they know no sin or they are not conscious of what they are doing. But if they see the years of that infancy and they become a teenager or an adult, they already know what they are doing and God can start judging them for their acts, which is that age of adolescence, we are fully aware of our actions. Then we have no excuse or whatsoever or the kind of life we live. We are expected to do the will of God.
We are expected to know the word of God and what is written in the Bible all these. Anyone that doeth the will of God is in heaven. He must also go to heaven also. But what if he is praying and calling upon the name of God in the passage and does not do the will of God? He will not enter the kingdom of heaven.
It's only just that we are willing to do the will of God and enter the kingdom of God. So the Bible has told us that the world is the repentance of no man. The commandment is there, the word is there, the law is there. So regardless of our status, we are expected to worship God in spirit and truth and to live a blissful life.