A mystery "saboteur" has been plaguing parents by leaving upwards-facing nails in grass verges outside a primary school.