Thinking well is integral to acting righteously. Truth and spirituality are of a piece: to know the truth is to do it. There is no dichotomy between the two. To be spiritual is to know/do the truth.