Barack Obama couldn’t resist one more lecture.

He used one of his final speeches to brag about his administration’s record in fighting terrorism.

But he also used the occasion to lecture and insult Donald Trump.

Speaking at MacDill Air Force Base in Florida, Obama created an alternate reality surrounding his administration’s fight against terrorism.

He bragged about supposed successes – even though Islamic terrorists in San Bernardino and Orlando killed over 60 Americans in December 2015 and June 2016 – and delivered a lecture many believed was intended to browbeat President-elect Trump into following his policies.

Time reports:

“In his speech at the MacDill Air Force Base in Tampa, Fla., on Tuesday, Obama seemingly touched on a variety of concerns about the president-elect that emerged during the campaign trail, including Trump’s support of torture and generalizations about the Muslim community.

The president also said the U.S. should uphold its values both at home and abroad, explicitly saying that stigmatizing Muslims would be counterproductive to the larger goal of fighting terrorism.

“We are fighting terrorists who claim to fight on behalf of Islam, but do they do not speak for over a billion Muslims around the world,” Obama said. “If we stigmatize Muslims, that just feeds the terrorist narrative.”

The U.S., he added, is not “a country that imposes religious tests as a price for freedom.” Aides to the Trump transition team have suggested that under the incoming administration, there could be a registry for Muslims in the U.S. Obama also said the U.S. is “a society where we can criticize a president without threat of retribution.”

“We are a nation that—at our best—has been defined by hope, and not fear,” Obama said.”

President-elect Trump’s strong stand against immigration from countries connected to terrorism is not a “religious test”.

Nor does it “stigmatize” Muslims.

Supporters argue that it’s just common sense.

Trump proposed shutting down immigration from terrorist hotspots after the Pulse Nightclub shooting in Orlando.

The jihadist was the son of an immigrant from Afghanistan.

This was the evolution of a policy Trump proposed after the San Bernardino terrorist attack where one of the terrorists was able to slip into the country by providing false information on a fiancé visa application.

Trump proposed a complete and total shutdown of foreign Muslims entering the United States.

Despite howls of protest by the media, Trump’s proposal proved popular in the GOP primary as voters believed he was willing to take a tough stand to protect America and not cave-in to the forces of political correctness.

Trump also rejected the Obama policy of reckless intervention that allowed the terrorists’ space to grow.

Obama toppled the government in Libya and supported arming the Syrian rebels in their fight against Assad.

America paid the price for the Libya debacle when terrorists murdered four Americans – including our Ambassador – at Benghazi.

Taking sides in the Syrian conflict has only helped ISIS.

Terrorists have infiltrated the flow of refugees into other countries, and arming groups trying to overthrow Assad could create another situation like Iraq, where once the government was deposed, created a vacuum which was then filled by jihadist groups.

Speaking in North Carolina, Trump rejected the failed policies of military adventurism.

Politico reports:

“Demanding that the “destructive cycle of intervention and chaos must finally come to an end,” Trump reiterated to the crowd in his latest “thank you” speech — this one notably lower-key than most of his campaign rallies — that he seesthe United States pulling back from interventionism and involvement in conflicts around the world that he doesn’t judge to be in America’s vital national interest…

…“We will stop racing to topple foreign regimes that we know nothing about, that we shouldn’t be involved with,” Trump said. “Instead, our focus must be on fighting terrorism and destroying ISIS.”

Trump campaigned on rejecting Obama’s failed anti-terror policies.

That fact that Obama would lecture Trump – despite having a long record of policies which has made the world a more dangerous place – was interpreted by many critics as a ridiculous insult.