How is prohibition of greater harm derived from “Do not say uff to them”?

Applied Usul al-Fiqh: Guided Case Studies (Supplementary)