It's better to remain silent and be taken for a fool, than talking and leave no doubt about it.
There's probably a better translation, or an equivalent for Guitry's words.

Another one from the same guy:
To be seen as an idiot by a fool is one of life's delicacies