(CNN) President Donald Trump once said taking executive action on immigration was an unconstitutional action that could lead to impeachment.

Trump's past comments are at odds with his current plans to declare a national emergency and other executive actions to secure funding for a border wall.

Trump made the comments on Fox News' "Fox and Friends" in November 2014 when asked about executive actions by then-President Barack Obama that would halt deportations for the undocumented parents of children born in the United States.

"Now he has to use executive action and this is a very, very dangerous thing that should be overwritten easily by the Supreme Court," Trump said.

"So we're looking now at a situation, it should absolutely not pass muster in terms of constitutionality, but it depends on what these justices do," he added.

Read More