Rom. 6:14-15 For sin shall not be master over you, for you are not under law but under grace. What then? Shall we sin because we are not under law but under grace? May it never be! Gal 4:4-5 But when the fullness of the time came, Elohim sent forth His Son, born of a woman, born under the Law,
so that He might redeem those who were under the Law, that we might receive the adoption as sons.
21 Tell me, you who want to be under law, do you not listen to the law?
Gal. 5:14 For the whole Law is fulfilled in one word, in the statement, “You shall love your neighbor as yourself. 15 But if you bite and devour one another, take care that you are not consumed by one another. 16 But I say, walk by the Spirit, and you will not carry out the desire of the flesh. 17 For the flesh sets its desire against the Spirit, and the Spirit against the flesh; for these are in opposition to one another, so that you may not do the things that you please. 18 But if you are led by the Spirit, you are not under the Law. 19 Now the deeds of the flesh are evident, which are: immorality, impurity, sensuality, 20 idolatry, sorcery, enmities, strife, jealousy, outbursts of anger, disputes, dissensions, factions, 21 envying, drunkenness, carousing, and things like these, of which I forewarn you, just as I have forewarned you, that those who practice such things will not inherit the kingdom of Elohim. 22 But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, 23 gentleness, self-control; against such things there is no law. 24 Now those who belong to haMashiyach Yahushua have crucified the flesh with its passions and desires. 25 If we live by the Spirit, let us also walk by the Spirit. 26 Let us not become boastful, challenging one another, envying one another.
The Law of righteousness comes from the above and the law of sin comes from the below. All the mortals are born into the kingdom of darkness subjected to the law of sin (under the law) and yet they are commanded to repent into the Kingdom of Light subjected to the Law of righteousness (under the grace). Adam was first instructed not to eat of the tree of the knowledge of the good and the evil (mortality), but with the opposition of the Law of righteousness, the serpent told Chauwah (Eve) to eat of the the tree of the knowledge of the good and the evil to live as the elohim (law of sin/violation). It is a perception of the opposed forces in this world, in which we cannot serve two masters.
To love your neighbor as yourself is a good law of righteousness, but to hate your neighbor as yourself is a law of sin (work of lawlessness). To violate the Law of Righteousness is that the Law is against the one who does the work of opposition of Law of Righteousness (under the Law). To keep the Law of Righteousness is to free you from the violation where there is no Law against you. The works of opposition are Forgiveness vs. Unforgiveness, Love vs. Hatred, obedience vs. rebellion/disobedience, Fulfillment vs. Partiality, Truth vs. Falsehood.
The law of sin is opposed to the law of righteousness in which tests every mind whether to obey His Law or not. Even, Shaul (Paul) struggled in his mortal life in Romans chapter 7:23-25 seeing the different law (law of sin) against the law of his mind that served YHWH.
So every spiritual minded experiences the battle between the knowledge of the good & the evil and the knowledge of purity in the Messiah so he prevails the knowledge of righteousness over the knowledge of mortality until the end of his flesh. The law of sin and the law of righteousness are everywhere that everyone comes to understand the works of opposition and decide what path to go for the success or for the failure. When the one sees the failure, he shall understand its work of opposition so that he may need to repent for the success.
Rom. 10:4 For haMashiyach is the end of the law (of sin) for righteousness to everyone who believes.
Upon our repentance from the kingdom of darkness, our Messiah ends the law of sin/imperfection that dominates us in which we are transferred to the Kingdom of righteousness to serve Him in the Law of perfection. Rom. 8:2 For the law of the Spirit of life in haMashiyach Yahushua has set you free from the law of sin and of death. Rom. 13:10 Love does no wrong to a neighbor; therefore love is the fulfillment of the Law. Acts 26:18 to open their eyes so that they may turn from darkness to light and from the dominion of Satan to Elohim, that they may receive forgiveness of sins and an inheritance among those who have been sanctified by faith in Me.
Shaul had experienced the battle of the laws of opposition in his inwardness:
Rom. 7: 22-25 For I joyfully concur with the law of Elohim in the inner man, but I see a different law in the members of my body, waging war against the law of my mind and making me a prisoner of the law of sin which is in my members. Wretched man that I am! Who will set me free from the body of this death? Thanks be to Elohim through Yahushua haMashiyach our Master! So then, on the one hand I myself with my mind am serving the law of Elohim, but on the other, with my flesh the law of sin.
What is lost shall be found, what is dead shall be the eternal life to give upon the repentance, so first we were scattered as lost in this world at the beginning but with His call of us out of this world of lost, we come together as found (upon repentace) in the one Unity of Love at the end.