Dead works - legalism - can not save either. It reveals spiritual death.
The walking dead = the dedicated religious spirit.
Eternally save = faith in Christ.
Temporally save = walk in faith in this world that will produce works.
If a believer gets caught up in a form of discipline that should have been escaped if he had been walking in the Spirit? His human works can not save him.
If walking in grace and truth? God's grace appearing in the midst of his works will save him.
This is how our faith can save us in times of evil....
3 Praise be to the God and Father of our Lord Jesus Christ! In his great mercy he has given us new birth into a living hope through the resurrection of Jesus Christ from the dead, 4 and into an inheritance that can never perish, spoil or fade. This inheritance is kept in heaven for you, 5 who through faith are shielded by God’s power until the coming of the salvation that is ready to be revealed in the last time. 6 In all this you greatly rejoice, though now for a little while you may have had to suffer grief in all kinds of trials. 7 These have come so that the proven genuineness of your faith—of greater worth than gold, which perishes even though refined by fire—may result in praise, glory and honor when Jesus Christ is revealed. 8 Though you have not seen him, you love him; and even though you do not see him now, you believe in him and are filled with an inexpressible and glorious joy, 9 for you are receiving the end result of your faith, the salvation of your souls. 1 Pet 1:3-9
Trusting in the Lord in a trial?
Being still and fearing not?
Finding yourself genuinely peaceful while doing those actions? = Good works.
Works are not all certain deeds like religion wants us to believe.