Herpes?

I've been dating someone I have some serious feelings for and he warned me that he has herpes and I was wondering if anyone had any advice on how to not get it if we decide to sleep together?