It was also a raw expression of vulnerability and anger from a president who associates say increasingly believes he is unprotected — with the Russia investigation steamrolling ahead, anonymous administration officials seeking to undermine him and the specter of impeachment proceedings, should the Democrats retake the House on Nov. 6.

In a freewheeling and friendly interview published Wednesday, Trump savaged Attorney General Jeff Sessions, mocking the nation’s top law enforcement official for coming off as “mixed up and confused” during his Senate confirmation hearing and for his “sad” performance on the job.

Watch more!

Though Trump has long railed against Sessions, both publicly and privately, for recusing himself from overseeing the Justice Department’s Russia probe, the president’s comments to Hill.TV brought his criticism to a new level.

“I don’t have an attorney general,” Trump said. “It’s very sad.”

Publicly, at least, Trump is going through the ordinary motions of being president. He met with the visiting president of Poland and on Wednesday toured the flood-ravaged Carolinas to survey damage from Hurricane Florence. He also prepared to hit the campaign trail with rallies in Nevada on Thursday and in Missouri on Friday, and next week he will host scores of foreign dignitaries at the United Nations General Assembly in Manhattan.

Attorney General Jeff Sessions speaks at Valor Survive and Thrive Conference in Waukegan, Ill., on Sept. 19, 2018. (Kamil Krzaczynski/Reuters)

Behind the scenes, however, Trump is confronting broadsides from every direction — legal, political and personal.

The president, as well as family members and longtime loyalists, fret about whom in the administration they can trust, people close to them said, rattled by a pair of devastating, unauthorized insider accounts this month from inside the White House. A senior administration official penned an anonymous column in the New York Times describing a “resistance” within to guard against the president’s impulses, while Bob Woodward’s new book, “Fear,” offers an alarming portrait of a president seemingly unfit for the office.

“Everybody in the White House now has to look around and ask, ‘Who’s taping? Who’s leaking? And who’s on their way out the door?’ It’s becoming a game of survival,” said a Republican strategist who works in close coordination with the White House, who spoke on the condition of anonymity to speak candidly.

Some of Trump’s allies believe he has legitimate cause for worry.

“The president should feel vulnerable because he is vulnerable — to those that fight him daily on implementing his agenda,” Stephen K. Bannon, a former chief White House strategist, wrote in a text message.

“The Woodward book is the typed up meeting notes from ‘The Committee to Save America,’ ” he added, referring dismissively to a loose alliance of advisers who saw themselves as protecting the country from Trump. “The anonymous op-ed is the declaration of an administrative coup by the Republican establishment.”

In some respects, Trump has maintained a sanguine outlook. Former Trump campaign chairman Paul Manafort last week became the latest former member of the president’s inner circle to agree to cooperate with federal prosecutors. But Trump has been uncharacteristically calm about the plea deal for Manafort, whom he had praised only a month ago for refusing to “break” under pressure from special counsel Robert S. Mueller III.

Asked if he was worried about Manafort’s cooperation agreement, Trump told reporters Wednesday: “No, I’m not. . . . I believe that he will tell the truth. And if he tells the truth, no problem.”

Trump has been similarly restrained this week as federal judge Brett M. Kavanaugh, his pick for the Supreme Court, fights to save his nomination amid an accusation of sexual assault, which Kavanaugh denies. Trump has publicly defended Kavanaugh, though he has refrained from attacking the judge’s accuser, Christine Blasey Ford.

White House officials, who began this week reeling from the assault allegation, said by midweek that they have concluded Kavanaugh would probably still win confirmation, especially given Ford’s reluctance to testify at a public Senate Judiciary Committee hearing scheduled by Republicans for Monday.

Nonetheless, Trump’s screed against Sessions underscored the president’s sense of anger and what he considers to be a betrayal by his attorney general, who, despite executing much of the president’s hard-line, law-and-order agenda, has never been able to recover from what Trump views as an unforgivable sin: his recusal from the Russia investigation for a conflict of interest, which ultimately led to Mueller’s appointment.

Trump told Hill.TV that he appointed Sessions out of blind loyalty, a decision he now regrets. Sessions’s aggressive and controversial immigration actions — including emphasizing “zero tolerance” for those who come to the country illegally and defending the administration policy of separating families — have been cheered by Trump allies. But the president criticized his attorney general even on this front, in a striking expression of his deep dissatisfaction.

“I’m not happy at the border, I’m not happy with numerous things, not just this,” Trump said, referring to the Russia probe.

The president’s attack on Sessions raised concern in the law enforcement community and also prompted reactions ranging from exasperation to outright dismay.

“Trump doesn’t just blur the lines, he flat out tries to eradicate those lines,” said Joyce Vance, a former U.S. attorney in Alabama nominated by President Barack Obama. “He wants a consigliere, not an attorney general. On the one hand, it’s a pitiful thing to watch, but it’s also deadly serious, because the attorney general does not protect the president. The attorney general protects the American people. And the fact that we have a president who doesn’t understand that is alarming.”

A former White House official was similarly disturbed. “It is a complete disgrace the way that Trump is acting like a schoolyard bully against Sessions,” the official said, speaking on the condition of anonymity to share a critical opinion.

In the interview, Trump belittled Sessions, whom he has previously dubbed “Mr. Magoo” and, according to Woodward’s book, dismissed as “mentally retarded.”

“He went through the nominating process and he did very poorly,” Trump said of Sessions’s Senate confirmation hearing. “He was giving very confusing answers, answers that should have been easily answered. And that was a rough time for him, and he won by one vote, I believe. You know, he won by just one vote.”

Trump went on to question Sessions’s self-recusal from the Russia investigation.

“He said, ‘I recuse myself, I recuse myself,’ ” Trump told Hill. TV. “And now it turned out he didn’t have to recuse himself. Actually, the FBI reported shortly thereafter any reason for him to recuse himself. And it’s very sad what happened.”

It was not clear what Trump meant.

Career Justice Department ethics officials had told Sessions he had to step aside from any ­campaign-related investigations because he had been a top campaign surrogate and met with the Russian ambassador.

FBI officials would not have been among those providing advice. Then-FBI Director James B. Comey said at a congressional hearing that he was aware of nonpublic information that he believed would force the attorney general to step aside before Sessions did so, though he declined to specify what those facts were.

After taking yet another public tongue-lashing from the president, Sessions gave a speech Wednesday to law enforcement officials in Waukegan, Ill., in which he effusively praised Trump.

“Under his strong leadership, we are respecting police again and enforcing our laws,” Sessions said, according to his prepared remarks, which a DOJ spokesman said he delivered. “Based on my experience meeting with officers like you across the country, I believe that morale has already improved under President Trump. I can feel the difference.”

Even as Sessions was dutifully showering compliments upon his boss, Trump was unwilling to throw him a lifeline.

“I’m disappointed in the attorney general for many reasons,” Trump told reporters before leaving for North Carolina. “You understand that.”