Worshiping false gods was also punishable by death in the Law (Exodus 2t0:2-6, Deuteronomy 13:1-18; Deuteronomy 12:30-32; Deut 18:9-14)... and given that we were all idolaters outside of Christ .. we have all committed sins worthy of death... What do you think the Levitical sacrificial system was for? To point people to the holiness of God, to our own sin and the necessity to die as a result of it. But it also pointed forward to Jesus who bore the death penalty FOR US because as the Last Adam, or True Israel, he obeyed the commands of God perfectly and was the only human being who ever lived who had never committed sin. The detractors always point to homosexual sin or cursing parents without realizing that all sin is worthy of death and we are all guilty before God. That is why we need a Savior. The revelation given in the Old Testament reveals God's holiness with only shadows and glimpses of his revelation of love. Now in the New Testament all sin is still likewise worthy of death but we have One who absorbed the penalty on our behalf. In Christ God not only forgives all forms of idolatry, sexual sin, greed and rebellion but gives us His Holy Spirit that we will no longer be in bondage to them. After the cross, now is an age of mercy. Our Lord's death on the cross brings clemency for a season. But don't take God's mercy for granted. His clemency will end and since the death penalty still stands for sin outside of Christ, the punishment for these and all sins will still be carried out when Our Lord soon returns to judge the earth.
The purpose of the Law according to the Bible:
"Now we know that whatever the law says it speaks to those who are under the law, so that every mouth may be stopped, and the whole world may be held accountable to God. 20 For by works of the law NO HUMAN BEING will be justified in his sight, since THROUGH THE LAW COMES KNOWLEDGE OF SIN." .- Rom 3:19-20
"The wages of sin is death." Rom 6:23
"Is the law, therefore, opposed to the promises of God? Absolutely not! For if a law had been given that could impart life, then righteousness would certainly have come by the law. But Scripture has locked up everything under the control of sin, so that what was promised, being given through faith in Jesus Christ, might be given to those who believe. Before the coming of this faith, we were held in custody under the law, locked up until the faith that was to come would be revealed. So the law was our guardian until Christ came that we might be justified by faith. Now that this faith has come, we are no longer under a guardian." - Galatians 3:21-25
The Law does still stand as does the death penalty for all sins committed in Adam ... but Jesus came to offer pardon in advance to all who ally themselves with him ... but when He comes again the law will come down full force on those outside of Christ. Now, in this age, we are pilgrims, sojourners, strangers on earth, recipients of mercy (not getting the death we justly deserve), eagerly awaiting His return and when He will carry out divine justice. Justice is being delayed or we would all be swept up in it.(Before being a Christian I cursed my parents, cursed God, actively promoted false gods, worshipped false deities). So lets not have an over-realized eschatology and carry out justice for Him, but rather, herald the good news of Christ to all who have ears to hear.