Any city may bring an action to enjoin and abate or prevent any nuisance that exists or is about to be created within the city or within three miles of its corporate limits.