Quite confusing. Which is which.? Saved by faith or saved by works.?
Today, the Jews still "falsely" think that they will be saved from hell when they die by believing in God/YHWH and keeping His Law or Moses Law. Similarly for today's Muslims, ie by believing in Allah and keeping Muhammad Law or Sharia Law.
....... Atheists "falsely" believe they will just die and return to dust or become nothing. Buddhists "falsely" believe they will die and be reincarnated/reborn according to their meritorious deeds until they reach nirvana/enlightenment.
Christians "truly" think that they will be saved from hell when they die by believing in God, who is also Jesus Christ(= God-in-the-flesh) or the Word and the Spirit(= God-in-the-Spirit) - JOHN.1:1 & 14, 1TIMOTHY.3:16, JOHN.6:63, 2COR.3:17.
There is a stark difference between the objective faith of the Jews and Christians wrt the way to heaven or salvation, ie the Jews did not believe that Jesus was the Christ/Messiah, was God-in-the-flesh and was the only way to heaven or salvation - cf; JOHN.14:6. The Jews thought that they were going to heaven by believing in God/YHWH and keeping Moses Law, which was only true Before Christ, ie no longer true After Christ.(LUKE.16:19-31, MATTHEW.17:3 & 27:52, 1PETER.3:19 & 4:6)
Paul and James were at loggerheads. James, the "biological" brother of Jesus Christ was the bishop of Jerusalem and the leader of the Judaizers, a group of Jewish Christians, who had demanded that new Gentile Christians converted by apostle Paul(= ACTS.9:15) be required to also keep Moses Law, eg be circumcised. Paul responded by saying that this burdensome requirement was not necessary as salvation was based solely on faith in Jesus Christ(eg JOHN.3:16) and not on the works of the Law - GALATIANS.2:9-17.
....... Luckily, this controversy was resolved in Paul's favor at ACTS.15:24-29, ie Gentile Christians were not required to keep all of Moses Law. They only have to keep the non-burdensome parts of Moses Law, with the understanding that doing so would only give them a better and longer life on earth. The gift of salvation or the kingdom of heaven when they die comes solely through faith in Jesus Christ.
IOW, Gentile Christians unburdenly keep the Law, in order to be blessed by God with earthly goodness and not in order to be saved from hell when they leave this earth or die.(cf; 1COR.5:5, LUKE.23:43)
....... The Book of James implies that Christians have to do the works of the Law, in order to be saved from hell.
If, for whatever reasons, an ignorant Christian go and break the Law or sin, eg commit murder, adultery, rape, stealing, cheating/lying, sorcery, idolatry, blasphemy, etc, he/she will then suffer the curses/punishments of God or His agents. While in suffering, eg cancer, imprisonment, etc, he/she may lose faith in Jesus Christ/God = may curse God/Jesus and die = lose his/her salvation. Why take the risk.? (cf; MATTHEW.19:16-23, 1COR.6:9-11)