If it's not correct, then the authors of the New Testament were not correct.
Ephesians 2:10
For we are His workmanship, created in Christ Jesus for good works, which God prepared beforehand that we should walk in them.
Who is the we? ...this is addresses to the church...the saved
James 2:14
What does it profit, my brethren, if someone says he has faith but does not have works? Can faith save him?
Faith with works save us. Obviously, faith comes first but works are required. In fact, Jesus calls belief a work. So if you say that works can't save you, then belief is not necessary either.
That is not what the scripture says.. that is not what Christ taught ... what work did the "good thief" do that saved him?
John 6:28
Then they inquired, “What must we do to perform the works of God?” 29 Jesus replied, “The work of God is this: to believe in the One He has sent.”
James is not a letter on HOW TO BE SAVED... It is written to the saved...to the church
Read it carefully Start at the beginning of the chapter to understand the context
James2"1My brothers, as you hold out your faith in our glorious Lord Jesus Christ, do not show favoritism.
This was a problem in the church of Jerusalem
Then to the saved (the church )he says
14What good is it,
my brothers, if someone
says he has faith but does not have works? Can that faith save him?
Note it is addressing people that say they are saved ...not ones seeking salvation
Now the problem James is addressing
15 If a brother or sister is poorly clothed and lacking in daily food,
16and one of you (the church) says to them, Go in peace, be warmed and filled, without giving them the things needed for the body, what good is that
17So also faith by itself, if it does not have works, is dead.
18But someone will say, You have faith and I have deeds.
Show me your faith without deeds, and I will show you my faith by my deeds.
Here he is pointing to the fact that caring for your poor brother or sister is a
fruit of your salvation
Please note here that James is addressing the saved calling those in need YOUR BROTHER AND SISTERS (others in the church)
The words of Christ on this ... "By this everyone will know that you are my disciples,
if you love one another."
8But someone will say, You have faith and I have works. Show me your faith apart from your works, and
I will show you my faith by my works.
Our works flow from our salvation , not the cause of it It is how our faith is justified to the world it justifies your faith to the unsaved