We do good works in faith, not to buy our way into heaven. Faith without works is a dead faith.
"faith without deeds is dead" (James 2:26)
I've considered James, but I've also found the 'dead'ness is a state of existence involving separation. The dead faith might be a separation between body and soul or spirit and body. Not necessarily a state of loss or without salvation from condemnation.