Unfortunately bacteria reproduce and evolve much faster than we can, so for practical purposes we likely can't really genetically engineer our way out of this
It would probably only take one or two generations to adapt, if the offspring dies before reproductive age - evolution is cruel, but it can be effective.