Good works can have ulterior motives and will always be tainted by our fallen flesh in this life. This makes them not-good.
Actions that are wrong, despite the best of intentions, are always wrong. Failure to act with appropriate guidance or wisdom.
So if our intentions are not enough, if our good deeds are flawed also, what really matters when we are trying to be saved or trying to be spiritual?
Trying is the problem. It is God's work, not ours. The most important thing is that God has done something in your life - that He has made you into a new being and that you are now born again by the work of the Spirit!
Such a thing is a major action by God. If you haven't seen evidence of a major change, in keeping with this major action by God, then there is trouble... Either you are not really a Christian, you lack assurance, or you are so unobservant of the glory of God in your life that you should be afraid of how you will face your Lord when it is your turn to stand before Him.
Make sure of it: that you understand the work of the Lord in you being born again. Speak of His glory!