24 Nor should the exercise of this right be considered undue interference, but rather maternal care on the part of the Church in protecting her children from the grave danger of all kinds of doctrinal and moral evil. Moreover this watchfulness of the Church not merely can create no real inconvenience, but must on the contrary confer valuable assistance in the right ordering and well-being of families and of civil society; for it keeps far away from youth the moral poison which at that inexperienced and changeable age more easily penetrates the mind and more rapidly spreads its baneful effects. For it is true, as Leo XIII has wisely pointed out, that without proper religious and moral instruction "every form of intellectual culture will be injurious; for young people not accustomed to respect God, will be unable to bear the restraint of a virtuous life, and never having learned to deny themselves anything. they will easily be incited to disturb the public order."
Source: Divini Illius Magistri (Vatican.va)