परित्यजेदर्थकामौ यौ स्यातां धर्मवर्जितौ |
धर्मं चाप्यशुभोदर्कं लोकविक्रुष्टमेव च ||
One must avoid all means of wealth and pleasures that are against the moral code of life - Dharma. Even Dharma (of older times) has to be given up if it now becomes irrelevant, against the collective morality of all people or is found to yield bad results in future.
- Manu Smriti