The diseases would only be spread amongst those who freely participated in the risky behavior. No different than drunken one-night-stands currently (which are legal).
Not really sure how public safety would be affected, tbh. Consenting adults have sex all the time without impacting public safety. Exchanging currency before or after the fact doesn't change a thing.