That's not safe that close to harvest. Find a PURE pyrethrin fogger, hang no pest strips, interrupt the pests' life cycle (paper plate over top of pot), etc but no synthetics now!
Then use the bomb after harvest, 3 times, set off 4-5 days apart, before introducing new plants.