Each of us must make moral choices as to how we will conduct ourselves.
The Torah permits marital relations, yet a person can, while acting wholly within the framework of the law, indulge a greedy lust born of unrestrained desire.
The Torah allows the consumption of meat and wine, yet a person may, while eating only kosher foods (even simple food, and as he exercises proper table manners), become obsessed with gratifying his palate.
Or someone may be honest, yet immersed in the pursuit of money with such utter self-abandon that it becomes his personal idol.
–Rabbi Adin Steinsaltz
From Understanding the Tanya by Rabbi Adin Steinsaltz