What is the meaning of [an ounce of discretion is worth a pound of wit]

Good judgment is often more valuable than knowledge or learning; also interpreted more literally as a warning to tactfully refrain from making jokes at another’s expense