Ayaan Hirsi Ali criticized what she considered the "apologetic attitude" some liberals around the world have toward identifying the religious component to Islamic terrorism.

Ali, a women rights activist who was raised Muslim in Somalia but later became an apostate, called such a mindset "masochistic and stupid."

She said on "Tucker Carlson Tonight" that radical Islamic terrorists "don't go to liberals and say thank you so much, we'll stop terrorizing you" because of some on the left refuse to identify terrorism's religious component.

Cop Stabbed Outside UK Parliament, People Hit by SUV in 'Terrorist Incident'

Peters: Tillerson Sending 'Utterly Wrong Message' by Planning to Visit Moscow

WATCH: Witnesses Describe Westminster Bridge Terror Attack in London

Islamists only seek a Sharia-compliant world, Ali said, in the wake of Wednesday's attack in London, a city with progressive leadership, "and whoever is in their way is their enemy."

She said anyone who does not understand that should not be legislating policy.

Carlson said terror groups believe Westerners do not have moral standing to critique Islam, and Ali agreed, adding that they sometimes will consider fellow Muslims illegitimate if they do not comply with their belief system.

Ali said that President Trump's Youngstown, Ohio campaign speech first showed her that he took the terror threat seriously, and selectively praised his travel ban.

She said the ban was a good idea but was "clumsily" enacted.

"It's incredibly difficult to vet people coming from [those countries]," she said, maintaining that he should have consulted more lawyers and experts to root out any inefficiencies in the document.

Rep. Nunes: Trump Transition Team Was Under 'Incidental' Surveillance

Sen. Mike Lee: GOP Health Care Bill 'Is Going to Fail'

Michael Moore: Dems Should Declare 'National Emergency' Over Trump-Russia Probe