It would have been better for them not to know the way of godliness than to know it but then turn their backs on the sacred command that was passed on to them.
They know that God’s commands are right, and that people who do wrong things like this deserve to die. But they continue to do those things anyway, and they even approve of others who do them.
Did what is good cause me to die? Not at all! But sin had to be recognized for what it was. So it used what was good to bring about my death. Because of the commandment, sin became totally sinful.