terrified of mastitis

I've heard too many horror stories about this from ladies I know personally and I'm so scared to get this. I've done some research but I still feel like I need to know more on how to prevent it. Does anyone have any advice on how to avoid getting this?