What is the meaning of [Better be a fool than a knave]

Of the two evils foolishness is the lesser, since it is usually considered
something you are born with, whilst knavery is something a person does
deliberately. Moreover knavery is more likely to land you in a prison than is
foolishness.