I would argue that Lawlessness is the key to this verse. Joel Osteen’s church is a great example. I personally know people who go there and claim to be Christians who are in open and unrepentant homosexuality, fornication, drug use, etc. Joel would say they are going to heaven. They say they are going to heaven. The Bible tells us differently
Faith is the key.
They kept the laws. Jesus didn’t know them because they didn’t have faith.