Abstinence is the decision to abstain from sexual intercourse. This does not mean to abstain from all sexual contact, just vaginal intercourse.
Abstinence is the only method of contraception that is 100% effective. If you are engaging in other sexual activities then STDs can be spread just as normal.
Don't have vaginal intercourse or (if engaging in related sexual activity) allow sperm to enter the vagina.
You cannot enjoy sexual intercourse and (if engaging in other sexual activities) this alone will give no protection against STDs.