Sen. Dan Sullivan said on Sunday that it would not be a politically smart move for President Trump to fire Attorney General Jeff Sessions.

Speaking on NBC’s “Meet The Press,” Sullivan, R-Alaska, said that despite months of strained relations between the president and the attorney general, and Trump having the legal authority to fire him, the Alaska lawmaker would caution against it.

"I supported Jeff Sessions when he was nominated. I certainly voted for him and I think he’s doing a good job," Sullivan said. “Would it be politically wise? I don’t think so, and I support Jeff Sessions and the job he's doing right now.”

Trump has repeatedly lashed out at Sessions on social media over the attorney general's decision last year to recuse himself from the FBI's Russia investigation. Last month, the president tweeted that Sessions "doesn't understand what is happening underneath his command position" and told "Fox & Friends" that his attorney general had "never taken control of his department."

The president also said that the only reason he named Sessions to one of his most important, Cabinet-level positions was the former Alabama senator's early support in the 2016 presidential election.

The comments prompted a pointed response from Sessions, who said in a statement that "While I am Attorney General, the actions of the Department of Justice will not be improperly influenced by political considerations."

In an interview with Bloomberg on Thursday, Trump said that Sessions will remain in his job at least until the November midterm elections. The president did not elaborate on if he would keep Sessions on as attorney general following the election.

Fox News Legal Analyst Gregg Jarrett echoed the president's words on Sunday during an appearance on "Fox & Friends," in which he said Sessions would be gone after the midterm elections and suggested that Trump appoint Rep. John Ratcliffe, R-Texas, to the post.

Ratcliffe, a relative newscomer to Congress after he defeated 17-term incumbent Ralph Hall in a primary run-off in 2014, was ranked as the most conservative Texas legislator in Congress and second most conservative legislator in the country by the policy group Heritage Action.

Samuel Chamberlain contributed reporting to this article.