i want to add there
Some people abide to rules just by discipline.
Example, married man has sexual fantasy with a woman who is not his
wife.
He did not commit the physical act of adultry. There are still
lust.
To over come over desire, we not only to keep precepts but also
most importantly, we need to cultivate/devekop wisdom, practise
mindfulness and meditation. However, this also depends on the karma
of the individual. 84000 dharma door to cross over.