It is not a contradiction he is just stating the obvious. Our good works are a manifestation of our faith. Faith if it hath not works is dead being alone.
James 2:19 Thou believest that there is one God; thou doest well: the devils also believe, and tremble.
James 2:19 Thou believest that there is one God; thou doest well: theThe devils also believe, and tremble in Jesus but are not saved.
If we have faith the only way we can be saved is through Jesus Christ. How everHowever if you have faith but are an unrepentant sinner, there is no scripturescripture that says you will be saved in your sin. Just like if you have good works but no faith you can not be saved as well. Faith and our good works go hand in hand. You can not be saved without the other.