Proverbs says, “The way of the foolish man seems right to him; but the wise man gives ear to suggestions” (Proverbs 12:15 BBE).
How can we recognize a fool when we come across one? It’s easy. They are not interested in being taught. They will only want to teach others.
It is not only ok for a Christian to avoid spending time with a fool; The Bible says we are to run from them.