I am wondering if my sentence is grammatically correct. Is it correct to write "as prevention against"?

On his doctor's recommendation, Peter has taken to swimming and hiking as prevention against diabetes.