Use a "warning, visitors must obtain pass in office, loiterers in vicinity of school or trespassers on school property are subject to arrest for disorderly conduct." sign. A sign is proven and effective.
Bold sign makes your message clear.
A sign is the corner-stone of your safety program.