Trump offered his advice at the U.S. Coast Guard Academy commencement in Connecticut, telling the graduates that they will find that "things are not always fair." But Trump says, "you have to put your head down and fight, fight, fight."

The Associated Press

NEW LONDON, Conn. — President Donald Trump lashed out Wednesday at his "critics and naysayers" following more than a week of negative news coverage beginning with his sudden decision to fire James Comey as FBI director.

In an address to the newest group of U.S. Coast Guard officers, Trump urged the 195 graduates in the Class of 2017 to "put your head down and fight, fight, fight" when life presents them with challenges and adversity.

Trump's appearance at the academy came the day after reports that he had personally appealed to Comey to abandon the FBI's investigation into former National Security Adviser Michael Flynn. Trump fired Flynn earlier this year for misleading top White House officials about his contacts with Russian officials.

The White House has denied the latest report, which landed amid a furor over the president's recent Oval Office meeting with Russian diplomats in which Trump is said to have disclosed classified information. The White House has said it was "wholly appropriate" for Trump to share the information.

Trump did not mention Comey during the nearly half-hour address, but seemed to allude to the multiple controversies swirling around him.

"Look at the way I've been treated lately, especially by the media," Trump said. "No politician in history, and I say this with great surety, has been treated worse or more unfairly. You can't let them get you down. You can't let the critics and the naysayers get in the way of your dreams."

"I guess that's why we won," he said, before continuing to offer the graduates his advice.

"Adversity makes you stronger. Don't give in, don't back down and never stop doing what you know is right," Trump said. "Nothing worth doing ever, ever, ever came easy and the more righteous your fight, the more opposition that you will face."

Trump also praised the newly minted Coast Guard officers, emphasizing that they will be an asset as new members of the U.S. military to his efforts to protect the homeland, protect U.S. harbors and seas from drug smuggling and human trafficking, and keep out "all who seek to do harm to our country."

"Together, we have the same mission and your devotion and dedication makes me truly proud to be your commander in chief," he said.

Despite Trump's praise, a financial outline for the Department of Homeland Security prepared by the White House budget office calls for scrapping the Coast Guard's counterterrorism Maritime Security Response Team, and all of its Maritime Safety and Security Teams.

The rationale for eliminating the programs wasn't spelled out in the document released earlier this year. Trump has made fighting terrorism a top priority, and his overall budget outline calls for significant increases in military spending. The Coast Guard is a division of the Department of Homeland Security.