Romans 1:32 “Though they know God’s decision that those who persist in such practices deserve death, they not only keep doing these things but also approve others who practice them.” (CEB)
God’s penalty of a death sentence is for those who persist in doing the evil actions mentioned in verses 29-31. It is the persistence and non-repentance that God despises. Someone who commits these acts and has a personal encounter with God through the person of Jesus Christ will be transformed so that he repents of the actions and ceases doing them. The key here is to willfully stop doing these things. It is a conscious decision on the part of the individual prompted by the Holy Spirit of God. Death here is the eternal separation from God.
There is a correlation between our actions here in the temporal world and their consequences in the eternal world. By getting closer to God and getting to know Jesus Christ intimately, the spirit works in you to convict you that these acts are wrong and that they are symptomatic of personal idolatry and self-worship.
The reason for the death sentence by God is not only the continuation of the acts but also the justification of those acts in the individual’s life as well as in the lives of others. You may be doing these actions and subsequently associate with others who do the same things. Through mutual approval you end up encouraging others to do these acts and, in turn, they encourage you to do them also.
The solution is to do the opposite. It is not only to refrain from these acts and behaviors but also to seek others who are committed to stay from those actions and behaviors.