So i like to think of it this way
We perform works because we are grateful for the grace imparted to us. The fruit of our salvation granted by the Holy Spirit within us does not prove our salvation it simply displays it that our heavenly Father may be glorified and others may come to know him.