to stop something bad from getting close or happening
I took precautions to keep the flu at bay during the winter.