Here the word "spirit" represents the thoughts and ideas of the person. To "follow" here is an idiom that means to do what their own ideas suggest for them to do. Alternate translation: "who act according to their own ideas" (See: [[rc://en/ta/man/translate/figs-idiom]])