Those two scriptures are in harmony
What??????????? Harmony???
In Matthew those people are being admonished for not doing works and in Eph. they are told not to do any works...
I also notice you didn't quote verse 10, I wonder why?
Eph 2: 10 For we are his workmanship, created in Christ Jesus unto good works, which God hath before ordained that we should walk in them.
Because the good works we are ordained to perform do not come from us as in the verses in Matthew...Any good works we do are as filthy rags to God...The good works we do come from God...
You need to let the Holy Spirit teach you some scripture...
That and works are proof of salvation and commanded to us anyways.
But if Catholics admit that we do good works without having to earn salvation from them, their arguments about us being filthy sinners falls apart.