or grinding without clothing.
3. If either of them touched his penis then her vagina with the same hand and one after the other. This carries a small risk but still a risk. The other two ways are much more likely.
The ways to prevent this is, not having sex, using a condom even if it isn't 100%, no skin to skin contact (keep undies on) and washing hands between touching yourself and your partner.