He posted that a couple of days ago and Ruby is a clickbaiting twit.
But, of course, the President is right. Securing our border against what has been happening is 100% consistent with the stated Constitutional purposes in the Preamble. It is a duty—clearly required by the oath of office.