You remember the Flood? God killed all of Mankind for being Wicked, right?
After the Flood, God states that Man was actually created with Wickedness already inside. If you have people, you will have wickedness.
It's how we're built.
How we were designed.
Which means God can punish you for doing things you are designed to be capable of.
Being capable of sex is not, therefore, logical proof God wants you to have sex.
You fail Scripture, ethics, morality, logic, and REALLY fail the 2nd Commandment.