We can prevent HIV by practicing safe sex, using condoms, and getting tested regularly. Additionally, avoiding sharing needles and taking pre-exposure prophylaxis (PrEP) can also reduce the risk of contracting HIV.