A head teacher has warned pupils at her all-girls" school "not to allow a lone policeman to approach you at any time".