Works do not justify someone. Salvation is by grace alone, in Jesus Christ alone, by faith alone.
The book of James says that works are a product of justification/salvation. Works are the fruit of salvation, not the root. If someone claims that they have faith and yet have no works, then...