I sincerely doubt that the Pharisees thought they were unsaved, brother. Jesus was attacking just this attitude of being proud of their salvation won. Clearly, the Pharisees thought they were saved by their external following of the works of the law. Jesus said the outer works are meaningless if the inner heart is not properly disposed - thoughts of mercy, forgiveness, and love.
Youre missing hte point- Good fruits is NOT the basis of our salvation- it does not- can not save us
Without works of love, you don't have faith that saves. Both James and Paul tell us this. Thus, you cannot be saved without works of love. For example:
"Bring forth therefore fruits worthy of repentance, and begin not to say within yourselves, We have Abraham to [our] father: for I say unto you, That God is able of these stones to raise up children unto Abraham. And now also the axe is laid unto the root of the trees: every tree therefore which bringeth not forth good fruit is hewn down, and cast into the fire". Luke 3:8-9
Merely being a "Christian" is not enough.
However, again, our righteousness is not our salvation- Christ is- period!
What does that mean?
Regards
"Bring forth therefore fruits worthy of repentance ..." is referring to the spiritual transformation fruit which The Holy Spirit accomplishes and which you are incapable of producing of your own works because the 'fruits worthy of repentence' are the 'righteousification' evidence ONLY God has the perfect power to produce for they are embue by His LIFE in you. By submitting self for Him to transform daily, you 'work out your own salvation ONLY through submission, never through your fleshly efforts.