Both of these phrases refer to what a fool says. Alternate translation: "What a fool says ... by what he says" (See: [[rc://en/ta/man/translate/figs-metonymy]])
This speaks of the man causing problems and trouble for himself as if he were trapping himself like a man traps an animal. Alternate translation: "he will cause problems for himself" (See: [[rc://en/ta/man/translate/figs-metaphor]])