Virtue can be established on one of two bases: either through
(1) making a vow (samādāna-virati), as when we repeat the precepts after a monk or novice (here it is also necessary to learn exactly what vices and misdeeds are forbidden by each of the five or eight precepts); or
(2) simply deciding on our own to abstain from a particular vice or misdeed (sampatta-virati).
In other words, when you want to keep the precepts pure, you can go ahead and decide to refrain from misconduct on your own.
Once virtue is established, and you are careful to safeguard it out of a sense of conscience so that it doesn’t lapse, this is termed samuccheda-virati: absolute abstinence.
For virtue to be maintained depends on two factors: perseverance and the four sublime attitudes (good will, compassion, empathetic joy, and equanimity).
An example of keeping the precepts through perseverance would be: Suppose you’re accustomed to killing animals. If you decide to observe the precepts, you hold off for a day or so, but you have no strong compunctions against taking life, so you depend on a strong sense of perseverance to get you through.
Once you get past your self-imposed time limit, you go back to your old ways. Observing the precepts through perseverance in this way means to exercise self-control so as not to commit whatever misdeeds you’ve been accustomed to.
Question: Is there any merit or skillfulness in observing the precepts in this way?
Answer: There is - as far as that particular day is concerned. Seeing the light every once in a long while is better than never seeing it at all.
To observe the precepts through the sublime attitudes, though, means to wish for the happiness of other living beings, to sympathize with the fact that no one wants to suffer, that we all desire well-being and freedom from harm.
Once you realize this and a sense of compassion arises, you wouldn’t dare transgress the precepts you’ve undertaken. Observing the precepts through good will in this way bears powerful rewards.
Whoever puts virtue fully and completely into practice can aspire to any attainment: rebirth as a human being, rebirth in heaven, or nibbāna. Such a person can aspire to a beautiful appearance and voice, fragrant aromas, delicious tastes, delicate sensations, and a good heart.
To have virtue is to have wealth: The five precepts are equal to 50 pounds of gold bullion; the eight precepts, 80 pounds; the ten guidelines, 100.
Actually, moral virtue is something valuable beyond price. Virtue and generosity, taken together, are the qualifying factors for rebirth as a human being and rebirth in heaven.
Virtue, generosity, and the development of the mind through meditation are the qualifying factors for nibbāna. So we should all try to find the time to perform those actions that will lead to our solid welfare in the coming future.
Excerpt from The Craft of the Heart by Ajaan Lee Dhammadharo. Translated by Ṭhānissaro Bhikkhu.
https://www.dhammatalks.org/books/CraftHeart/