How to prevent ear infections or aches!

How to prevent ear infections or aches! Are you sick of getting Ear Aches or Ear infections in the Summer time after going in the water? Well i seem to have this issue as well but love the water and hate putting ear plugs in! they always fall out and i lost them! So...