The book of James is aimed at telling believers to do good works to make their beliefs come alive. It's for believers, not for telling non-believers that they can be saved by works. It's often misinterpreted that way.
βIn a time of deceit telling the truth is a revolutionary act.β β George Orwell
It's not over when you lose. It's over when you quit.