Limit the number of partners you have If you are going to have sex, have it with just one person and ask about his or her sexual history. The fewer partners you have, the less chance you will get an STI.