The Goldilocks Principle and Antibiotic Resistance in Bacteria