Ideas, principles, laws, customs, codes, habits, actions - are all to be judged on the twin points : intention and consequence. Is the intention pure, is it born out of love, is it based on truth? Does it result in peace? If yes, DHARMA (righteousness) is enshrined in that action or law, custom or conduct.
(From : Sai Veda, The Word of God, sayings of Bhagavan Sri Sathya Sai Baba)