And yet the doers of the law shall be justified. The gentiles showing the work of the law in their hearts. The invisible things of God from the creation of the world having been made known, Therein the just shall live by. Faith in this. The working of God in and through our hearts. (Romans 2:13-15; 1:17-20) But we are in Galatians not Romans. That is a whole different context and letter. Let's stick with Galatians please, if we get through it then maybe Romans.
You spoke of context before let's stick with that shall we. It applies because he is talking to gentiles in this discourse. Starting in verse 12. In connection to that he says that we can't do the things that we would because the Spirit is contrary to the flesh and passionate against it's desires. In conclusion to this connection with the Spirit that we have it says that we are not under the Law If we are led by it. THERE IS a condition placed there. IF you are led by the Spirit you are not under the law. So if you are not led by the Spirit then you are committing said acts and are under the law. But if you are led by the Spirit the law is not needed because we are not breaking it because of it's fruits through Christ. Wherein there is no law against. (Gal 5:23)
Gal 5:12 I would they were even cut off which trouble you.
Gal 5:13 For, brethren, ye have been called unto liberty; only use not liberty for an occasion to the flesh, but by love serve one another.
Gal 5:14 For all the law is fulfilled in one word, even in this; Thou shalt love thy neighbour as thyself.
Gal 5:15 But if ye bite and devour one another, take heed that ye be not consumed one of another.
Gal 5:16 This I say then, Walk in the Spirit, and ye shall not fulfil the lust of the flesh.
Gal 5:17 For the flesh lusteth against the Spirit, and the Spirit against the flesh: and these are contrary the one to the other: so that ye cannot do the things that ye would.
Gal 5:18 But if ye be led of the Spirit, ye are not under the law.
Gal 5:22 But the fruit of the Spirit is love, joy, peace, longsuffering, gentleness, goodness, faith,
Gal 5:23 Meekness, temperance: against such there is no law.
Gal 5:24 And they that are Christ's have crucified the flesh with the affections and lusts.