The ends justify the means mindset has been the impetus behind many a cruel medical or social experiment.