Someone as intelligent as the president would never say this on Hacker News, no. Someone was intelligent as a president looking to get anywhere in politics, would.
Sad, but there's one solution: actively support the rights of people you otherwise disagree with. The right-wing backlash in ~2001-2004 was immense and "justified" with statements "well, you guys didn't speak up after Ruby Ridge[1], so why should we speak up for you?"
In ~12/14-12/16, my Twitter stream was full of variation of "you right-wing nuts did not support 4th amendment rights after 9/11, why should we support 2nd amendment today?"
Reminder: "eye for an eye" leads "we're all blind!" more often than "people we don't like have one eye punched out too!".
[1] "I don't think it's fair to entrap someone in order to make them spy on a neo-Nazi organization, then lay siege and kill their wife if they don't" does not equate to "I support their black helicopter conspiracy theory views".
If he seemed to be actually applying that standard, I'd worry. Otherwise it just seems like he cares a lot about children, which, man, I just can't be mad at someone for that.
Using that logic could lead you could justify almost anything. There are literally thousands of things we could ban that would certainly save at least one child's life.