To protect against vine borers, maintain healthy plants through proper watering, fertilization, and spacing, as healthier plants are more resistant to pests. Use row covers to prevent the adult vine borer moth from laying eggs on the plants. Regularly inspect your squash plants for signs of vine borers; if detected, remove them manually if possible. Pesticides can be used as a last resort, but choose an option that is safe for edible plants and follow application instructions carefully.