President Trump said in an exclusive "Fox & Friends" interview that he'd be willing to shut down the government in order to obtain funding for his border wall. 

"If it was up to me, I'd shut down government over border security," said Trump in a conversation at his Montana rally Thursday night, conceding that he does not want to take such action before the midterm elections. 

Trump predicted there will be more Republican representation after the elections, saying he has commitments from Republican leaders Sen. Mitch McConnell and Rep. Paul Ryan to pass funding for the border wall after the midterms.

The president also blasted a senior administration official who wrote an anonymous New York Times op-ed criticizing his behavior and demeanor while in office. 

Sen. Gillibrand: 'Women Are Going to Die' If Kavanaugh Is Confirmed

'Beneath the Dignity of the Senate': Scalise Rips Booker's 'Spectacle' at Kavanaugh Hearing

"The Times should have never done that because really what they have done is virtually, you know, it’s treason," said Trump, describing his administration as a "well-oiled machine" with a "lot of love" in it. 

Later in the interview, Trump urged the rally-goers to vote for Republican Senate candidate Matt Rosendale, saying incumbent Sen. Jon Tester (D-Mt.) will never vote for his 

He blasted Tester for leading the effort to "falsely" demean Dr. Ronny Jackson, who ultimately withdrew from consideration to be Trump's VA Secretary. 

Trump said Tester would "get rid of" the Second Amendment if he could and voted against Supreme Court Justice Neil Gorsuch and against tax cuts.

Watch the clips above and below. 

'Off the Rails': Huckabee, GOP Challenger Blast Warren's Call for 25th Amendment to Oust Trump

Nike Is 'Exploiting' a Divisive Issue: MO College Says It's Dropping Nike After Kaepernick Ad

'It's Sad': Gowdy Disappointed to See Dems Positioning Themselves for 2020 at Kavanaugh Hearings