Keep one’s distance from (someone or something)

To maintain a certain distance from someone or something.

The girl always keeps her distance from the other students in the class.