James is not talking about going to heaven, and that is your confusion.
As going to heaven, is not based on anything you do other then giving God your Faith in Christ.
God does not accept your BEHAVIOR to receive you as a son, because you have already SINNED,
Understand?
So, God has provided a sinless CHRIST as the atonement that HE Accepts to accept you.
This is why Jesus told YOU that He is THE WAY to the Father. John 14:6
There is no other..
Listen..
God saved you, out of Mercy. Out of His great love for you, God became one of us to offer "the Gift of Salvation" to all of us.
If you are born again, its because of God's great mercy that He has extended to you, as the Blood of Jesus and Death of Christ..
We didnt deserve it, and we didn't earn it, and you can't keep it of yourself as Salvation is all of God, through Christ's redemptive Blood that is = charged to you, imputed to you, given to you as a GIFT. = "The GIFT of Salvation".
Philippians 1:6
God did not give you His Grace, so that you can now get on some self righteous mental Track and run around it like a worried pony, hoping you can stay in the race and barely make it into heaven.
So, as that is obviously how you believe, based on your posts... the i have good news for you.
The born again are ALREADY in Heaven, "in Christ" and we are simply waiting for the day we arrive when we get THE new body.
That's the reality for all the born again, as all the born again are "seated in heavenly places, in Christ", right now.