anal tips please

so someone help me out here, I've had anal sex 3 times with my ex and my current boyfriend wants to try it the thing is... The last time I had anal sex I had shit on him. What are some tips to prevent this from happening?? HELP PLS I'm scared of this happening again