Evolution of host resistance in a toxin-producing bacterial–fungal alliance