No one is saved by their works. (But if they have faith that does save, they will indeed do the "works prepared for us" as Paul wrote).
I think God is far deeper and smarter than us, because scripture says this --
8“For my thoughts are not your thoughts,
neither are your ways my ways,”
declares the Lord.
9“As the heavens are higher than the earth,
so are my ways higher than your ways
and my thoughts than your thoughts."
I think this means we can't even be sure about that idea that salvation is not even partly up to us (to take even any actions at all)! I do know that Christ gave instructions to disciples
who already believed, and that Paul and Peter and James and John wrote instructions to do actions to believers who already believed.
So, though I cannot know whether someone can be saved if they ignore some of the instructions given, I do know Christ said we cannot endure or make it unless we do as He said:
24“Therefore everyone who hears these words of mine and puts them into practice is like a wise man who built his house on the rock.
25The rain came down, the streams rose, and the winds blew and beat against that house; yet it did not fall, because it had its foundation on the rock.
26But everyone who hears these words of mine and does not put them into practice is like a foolish man who built his house on sand.
27The rain came down, the streams rose, and the winds blew and beat against that house, and it fell with a great crash."