I'm not sure if I understood correctly your question . Two ways HIV/AIDS not spread through sex ...
By blood transfusion (there was a scandal in France and other countries in the eighties ....many people got HIV because of this ; it was called the scandal of contaminated blood...)
The other one could be a fight between two people with severe bleeding injuries; if one of them is HIV, it may contaminate the other one. Or someone willing to help and look after a cut, if this person has a small cut as well, he may be contaminate by blood.
As blood is the only way of contamination, people have to be careful when helping someone bleeding if they are bleeding too.
Usually, in hospitals, dentists, they have to use gloves
The biggest breakthrough came in 1921 when Frederick Banting and Charles Best conducted a series of experiments one summer in the laboratory of J.J. R. Macleod at the University of Toronto. Like Minkowski and von Mering, they showed that removing the pancreas from dogs made them diabetic.