And so we are to disregard all of the parables of our Lord in which he warns us of our judgment according to our deeds? And of course we have this from Paul:
Now the works of the flesh are obvious: immorality, impurity, licentiousness, idolatry, sorcery, hatreds, rivalry, jealousy, outbursts of fury, acts of selfishness, dissensions, factions, occasions of envy, drinking bouts, orgies, and the like. I warn you, as I warned you before, that those who do such things will not inherit the kingdom of God. (Galatians 5:19-21)
That's Paul's way of reminding the Christians to not put too much stock in their works for salvation --- even works required by God in the Old Testament.
Yet Paul goes on in the later part of the chapter to say not to forget works altogether either. As you correctly point out that people who do those won't inherit the kingdom of God. And then he goes back to the circumcision-isn't-part-of-salvation argument in chapter 6.
So what does it all mean? I mean all of it together, not just a few verses here or there? I take it to mean:
1) Don't get caught up in works as far as salvation.
2) But don't think being saved by grace gives us license to live like we ain't saved. If we aren't believers enough to change our lives, then we need to question if we really are believes (and by extension aren't saved).
3) But Paul goes back to what I point out as point #1 -- actions still ain't enough to be saved.
Since Paul repeats that I'll repeat it too -- be careful not to put too much into works when it comes to salvation. Us Protestants also need to remember to live it like we mean it, but Catholics need to be weary of putting too much into works when it comes to salvation.