(Rom. 2:8,9). Regarding those who violated the Law of Moses, the Scripture said, "Cursed is everyone who does not continue in all things which are written in the book of the law, to do them," (Gal. 3:10). Participation in sin brings to the sinner - earned condemnation; the curse of violating God's law.
JLB, the Bible is not compartmentalized and that is what you are trying to do here. The Bible is divided, only, that there are two testaments, the Old, a.k.a. the Bible Jesus and Paul taught and commented on and the New. the only God authorized Life Application Commentary on the Bible. Aside from that the Bible, Old and New Testaments are of one continuous context. So much so that the first rule of Hermeneutics is, 'No single, no group nor any grouping of scripture can ever be understood without the light of all other scripture shinning on it or them.
God bless brother.