The Law IS works. Read Galatians 3:2 again. The WORKS of the LAW.
Read all of Galatians. Paul is speaking of the Mosaic Law, and specifically of circumcision, not of the universal and eternal moral law.
You were running well; who hindered you from following [the] truth? That enticement does not come from the one who called you. A little yeast leavens the whole batch of dough. I am confident of you in the Lord that you will not take a different view, and that the one who is troubling you will bear the condemnation, whoever he may be. As for me, brothers, if I am still preaching circumcision, why am I still being persecuted? In that case, the stumbling block of the cross has been abolished. Would that those who are upsetting you might also castrate themselves! (Gal. 5:7-12)
Both Galatians and Romans are addressing the problem of the Judaizers who insisted that the new Gentile Christians needed to be circumcised and follow the Mosaic Law. He is not saying that we will not be judged by our acts. Thus he immediately follows with:
For you were called for freedom, brothers. But do not use this freedom as an opportunity for the flesh; rather, serve one another through love. For the whole law is fulfilled in one statement, namely, “You shall love your neighbor as yourself.” But if you go on biting and devouring one another, beware that you are not consumed by one another. I say, then: live by the Spirit and you will certainly not gratify the desire of the flesh. For the flesh has desires against the Spirit, and the Spirit against the flesh; these are opposed to each other, so that you may not do what you want. But if you are guided by the Spirit, you are not under the law. 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. In contrast, the fruit of the Spirit is love, joy, peace, patience, kindness, generosity, faithfulness, gentleness, self-control. Against such there is no law. Now those who belong to Christ [Jesus] have crucified their flesh with its passions and desires. If we live in the Spirit, let us also follow the Spirit. Let us not be conceited, provoking one another, envious of one another. (vss. 13-26)
Thus he lists a number of sins and says, "Those who do such things will not inherit the kingdom of God." He does not add, "unless you have faith." Nor does he say that faith will cover these sins." Note that he is writing to believing Christians, not to pagans. So yes, we can loose our salvation through unrepentant sin. Paul says this explicitly. If you have a problem with this, you have a problem with Paul and you have a problem with the Bible.
Protestants try to broaden Paul's teaching to obedience to the moral law. In doing so they are placing the doctrine of sola fide above Scripture, forcing an interpretation that is not there. So much for the claim of sola Scriptura. You are placing your own man-made tradition above Scripture.
Habakkuk 2:4 New Revised Standard Version
Look at the proud! Their spirit is not right in them, but the righteous live by their faith.
Galatians 3 King James Version
1 O foolish Galatians, who hath bewitched you, that ye should not obey the truth, before whose eyes Jesus Christ hath been evidently set forth, crucified among you?
2 This only would I learn of you, Received ye the Spirit by the works of the law, or by the hearing of faith?
3 Are ye so foolish? having begun in the Spirit, are ye now made perfect by the flesh?
4 Have ye suffered so many things in vain? if it be yet in vain.
5 He therefore that ministereth to you the Spirit, and worketh miracles among you, doeth he it by the works of the law, or by the hearing of faith?
6 Even as Abraham believed God, and it was accounted to him for righteousness.
7 Know ye therefore that they which are of faith, the same are the children of Abraham.
8 And the scripture, foreseeing that God would justify the heathen through faith, preached before the gospel unto Abraham, saying, In thee shall all nations be blessed.
9 So then they which be of faith are blessed with faithful Abraham.
10 For as many as are of the works of the law are under the curse: for it is written, Cursed is every one that continueth not in all things which are written in the book of the law to do them.
11 But that no man is justified by the law in the sight of God, it is evident: for, The just shall live by faith.
12 And the law is not of faith: but, The man that doeth them shall live in them.
13 Christ hath redeemed us from the curse of the law, being made a curse for us: for it is written, Cursed is every one that hangeth on a tree:
14 That the blessing of Abraham might come on the Gentiles through Jesus Christ; that we might receive the promise of the Spirit through faith.
15 Brethren, I speak after the manner of men; Though it be but a man's covenant, yet if it be confirmed, no man disannulleth, or addeth thereto.
16 Now to Abraham and his seed were the promises made. He saith not, And to seeds, as of many; but as of one, And to thy seed, which is Christ.
17 And this I say, that the covenant, that was confirmed before of God in Christ, the law, which was four hundred and thirty years after, cannot disannul, that it should make the promise of none effect.
18 For if the inheritance be of the law, it is no more of promise: but God gave it to Abraham by promise.
19 Wherefore then serveth the law? It was added because of transgressions, till the seed should come to whom the promise was made; and it was ordained by angels in the hand of a mediator.
20 Now a mediator is not a mediator of one, but God is one.
21 Is the law then against the promises of God? God forbid: for if there had been a law given which could have given life, verily righteousness should have been by the law.
22 But the scripture hath concluded all under sin, that the promise by faith of Jesus Christ might be given to them that believe.
23 But before faith came, we were kept under the law, shut up unto the faith which should afterwards be revealed.
24 Wherefore the law was our schoolmaster to bring us unto Christ, that we might be justified by faith .
25 But after that faith is come, we are no longer under a schoolmaster.
26 For ye are all the children of God by faith in Christ Jesus.
27 For as many of you as have been baptized into Christ have put on Christ.
28 There is neither Jew nor Greek, there is neither bond nor free, there is neither male nor female: for ye are all one in Christ Jesus.
29 And if ye be Christ's, then are ye Abraham's seed, and heirs according to the promise.