Hello everyone, it's my first post but I've been "lurking" here for quite a long time

.
Let's say that there is a man who is very wealthy thanks to scams/cheating/stealing/whatever. It is of course a sin. You want to pray for him to change his ways, but you feel deep inside that you don't really condemn the sin, but you are jealous of his wealth. Envy is also a sin.
So is it okay to pray for him to stop sinning (which is a good thing, I guess) even though you know that you do it only because of jealousy (which is a bad thing). What if you know that you are jealous and you know it is wrong and you try to overcome it?
I'm sorry if this question was asked here before, I didn't find it.