You guys need to take a deep breath and read what the statute says. That entire law deals with sex acts committed with a prostitute. Section A says it is illegal to have sex with a prostitute unless you are married to her. That's it.
You need to find the statue that defines what a prostitute is so you can understand your risk. The rest iis minor things that give uncle Leo more ammo to use to make you think twice about taking a walk on the wild side.
It also adds penalties for those who are involved in all phases of under age prostitution.
This statue has no impact on consenting adults, gay / straight, and what they do. The age of consent remains 17 in Illinois.