They know that God’s commands are right. They know that those who do evil things should die. But they continue to do those very things. They also approve of others who do them.
Did what is good cause me to die? Not at all! Sin had to be recognized for what it really is. So it used what is good to bring about my death. Because of the commandment, sin became totally sinful.
Suppose they had not known the way of godliness. This would have been better than to know godliness and then turn away from it. The way of godliness is the sacred command passed on to them.