omg, don't smoke buds sprayed with neem oil! holy sh%.... don't spray your plant constantly with it, that's just horriblly unhealthy advice for you as a human and anyone using what you produce.
sticky tape, DE (diatomaceous earth) spread around tent/grow area, in grow area etc... anything but spraying poison on something you will later put into your body, lol. do you want cancer or liver problems? BWAHAHA
if it requires pesticieds and in flower, you should trash it or power through. maybe in vege a quick foliar spray to kill something is enough time? but, i'm no expert... it doesn't take an expert to recognize poison, though. safe amount or how long before it's "safe" is a different thing entirely. don't get that kind of info from a place like this.
keep a cleaner area. let soil dry out.. if reservoir, get it sealed up better. no standing water in tent... sprinkle DE around outside and inside of tent all over if you want, lol. if you take it outside ever, stop doing that. shore up the room the tent is in etc etc... you can avoid pests.