Q.removed infected squash plant
Acorn squash infected borer beetle (saw red eggs). Cukes planted next to squash. Sprayed with Bayer insecticide. What else to prevent spread?

With some insects, it's hard to achieve control after the infestation has started. You can spray with one of these home made remedies, if you choose: https://www.gardeningknowhow.com/special/organic/natural-home-pesticides-organic-garden-pest-control.htm
Here's a couple of articles about insects you might find on your squash and cucumbers: https://www.gardeningknowhow.com/edible/vegetables/cucumber/cucumber-beetle-control.htm
https://www.gardeningknowhow.com/edible/vegetables/squash/squash-pests-identifying-and-preventing-squash-vine-borer.htm
