What does it mean that “whoever fears God will avoid all extremes” (Ecclesiastes 7:18)?

This article has been translated into the following languages: