yes it is a kind of advice, or even better, it describes the result of body perfection ,which is to lose your mind over the pleasures of the flesh. The writer's advice is to avoid that.
At least this is how I understand it. You can compare my expalnation to the rest of your text.
Hope it makes sense.
Student or Learner