Trying anal


So my boyfriend and I have been together for 5 years coming up 6 this month and have been talking about trying anal. What are some tips for beginners? Is it true to get an infection if you go from anal to vaginal? How to prevent. Thanks for the help (this is also my first time posting on here)