"For all who rely on works of the law are under a curse; for it is written, “Cursed be everyone who does not abide by all things written in the Book of the Law, and do them.” Now it is evident that no one is justified before God by the law, for “The righteous shall live by faith.” (Galatians 3:10-11)
The only thing that damns a person is unbelief.
"And when He has come, He will convict the world of sin, and of righteousness, and of judgment: of sin, because they do not believe in Me." (John 16:8-9)
The world's sin is unbelief.