It is a bad thing for intelligence, and ultimately for character, to let instruction be influenced by moral considerations. It should not be thought that some knowledge is harmful and some ignorance is good. The knowledge which is imparted should be imparted for an intellectual purpose, not to prove some moral or political conclusion.
Source: On Education, especially in early childhood, 1926, by Bertrand Russell
More info.: https://russell-j.com/beginner/OE14-020.HTM