Cairo — “I could be arrested when I leave here,” said a journalist, who I met at the Marriott near Cairo’s Tahrir Square. A student activist observed that he could be detained at any time.

Most foreigners travel to Egypt to play tourist. I visited with a human rights delegation.

I was reminded yet again about how lucky Americans — and, indeed, most Westerners — are. Forget American exceptionalism and manifest destiny.

Most important are the basic characteristics of a free society. The rule of law. Civil liberties. Criminal procedures. Legal safeguards. Democratic processes.

Obviously, even nations which purport to have all of these often fall short. However, few Americans or Europeans, or citizens of democratic Asian nations, live in constant fear of arrest, imprisonment and torture.

The uncertainty began when arriving. On both trips, the government knew about me since my host organization requested meetings on my delegation’s behalf. Both times I was pulled aside.

The first time an entry guard took my passport and I waited for an hour before officials returned it and waved me on. The second time, after far shorter delay, security officials formally welcomed me — after asking for my phone number and hotel destination. Of course, the U.S. occasionally stops people from entering, but not typically because they want to assess America’s human rights record.

Even after leaving the arrivals area on my first trip. I had to wait again while the videographer joining us unsuccessfully attempted to persuade officials to let him bring in his camera. While there are places in the U.S. where you can’t film, no one’s going to stop you from having a camera.

Both visits were filled with interviews relating all sorts of harrowing stories. Most every society has injustice and errors are sadly common in U.S. jurisprudence.

However, most Americans don’t expect a visit to a friend to turn into a stint in prison.

In Egypt, for reasons of political repression and personal revenge, people face arbitrary arrest, perpetual detention, fraudulent trials and horrific imprisonment. Some of the accounts we heard could be exaggerated or even false, but reports from people in many walks of life and across the political spectrum were consistent and demonstrated that the slightest resistance to state authority risks freedom and even life.

Moreover, those with whom we met were vulnerable to arrest. Students told us about classmates detained at demonstrations. Journalists discussed colleagues arrested after criticizing the regime.

Attorneys reported on lawyers detained while representing defendants. Family members described the arrest of relatives.

Nor is there any effective oversight or appeal to limit official abuse. If you are tortured or suffered from inhumane prison conditions, you only can complain to the public prosecutor, which rarely follows up allegations against government officials.

While members of my delegation, largely Americans and Europeans, felt relatively secure, we knew other foreigners had been arrested for various offenses. At least in the U.S. no meeting other than one involving a criminal conspiracy could land a listener in jail.

Evidence of extreme force is everywhere. Tanks by prisons, armored personnel carriers in city squares and on city streets, barbed wire and armed sentries around sensitive government installations, and a ubiquitous mix of uniformed and plain clothes security personnel.

It is unsettling enough to be stopped by a policeman in the U.S. After hearing stories of dubious arrests followed by months of detention, no one wants to end up anywhere near an Egyptian cop. Yet after clearing passport control to leave on my second trip, two of us were unnerved when a border agent asked to look at our passports for no obvious reason.

Egypt is a fascinating country with hospitable people. It faces enormous economic and social challenges.

Despite all of the problems faced by those in the West, even imperfectly free societies offer extraordinary advantages which we should never forget. Walking the streets of Cairo I thought: there but for the grace of God go I. With my U.S. passport I could return to a society which, despite great imperfection, nevertheless generally respects people’s lives, liberty and dignity.