Use latex condoms correctly to protect yourself against HIV and other STD. Pay attention to the condom expiration date and where it's been stored before sold.
When putting the condom on, make sure there is NO AIR trapped at the tip of the condom.
If you're going to have anal sex, apply water-based lubricant to the condom to reduce the risk of condom breakage.
Use condoms for vaginal and anal sex and use lube then you will not have a HIV risk.