The distinction between those may not always be that well-defined.
I once read that the story of the Good Samaritan (by Jesus) follows the structure of a popular set of jokes (or possibly self-congratulatory "wisdom") of the time: something happens, a priest comes by and is useless, a Levite passes by and is useless, and finally a common Jew comes by and fixes the problem, and everybody gets to feel good about being a commoner and not some useless elitist. Except Jesus tripped up his audience by replacing the Jew with a Samaritan.
-----
Zhuangzi and Huizi were crossing a bridge over the river Hao.
Zhuangzi said: the fish have come out to play; this makes them happy.
Huizi said: You are not a fish. How do you know what makes fish happy?
Zhuangzi said: You are not me. How do you know that I don't know what makes fish happy?
Huizi said: I am not you. Of course I do not know you. [But] you are certainly not a fish. Your non-knowledge of what makes fish happy is total.
Zhuangzi said: Please stick to your original [question]. You asked how I know what makes fish happy. You already knew that I knew this and [still] you asked me. I know it over the Hao.
-----
"I know it over the Hao" makes sense because in the original language, the word "how", 安, is also the word "where".
The story comes down to us as part of a foundational text. Is it wisdom or a cheap joke?
The text may present this as wisdom, but I would say it is both wisdom and humour.