The social media ban on President Donald Trump is consistent with the principle of preventing harm to others.