Trump, who has been struggling under the weight of a series of controversies, insisted that he cannot let the critics get in the way of his dreams.
"Look at the way I've been treated lately, especially by the media. No politician in history -- and I say this with great surety -- has been treated worse or more unfairly," Trump said at the US Coast Guard Academy Commencement ceremony in New London Connecticut.
"I guess that's why we won. Adversity makes you stronger.
Don't give in, don't back down, and never stop doing what you know is right," he told the cadets.
Trump said that he accomplished a tremendous amount in a very short time as President.
"Nothing worth doing ever, ever, ever came easy, and the more righteous your fight, the more opposition that you will face," he said, adding one needs to put his head down and "fight, fight, fight" and never give up.
Trump said he did not get elected to serve the Washington media or special interests.
"I got elected to serve the forgotten men and women of our country, and that's what I'm doing," he stressed.
Trump was speaking amid reports that he asked sacked FBI Director James Comey to shut down the bureau's investigation into former National Security Adviser Michael Flynn earlier this year.