This quote means that it is better to stay quiet, even if it may make you seem stupid, rather than speak and make it clear that you are, in fact, a fool. This means that it is better to not risk people knowing how foolish you are by not speaking in a situation. Ultimately, it is better to be thought a fool than to be sure that people know you are one.