Sirach 19:24

24
Better is one who has inferior understanding, and fears,Than one who is very smart but transgresses the law.