Most people, when they think about crossing a border illegally, imagine a worst-case scenario somewhere in the range of “detained for a few hours” or “sent home on a government’s dime.” For most of the world, that mental picture is roughly accurate. A civil fine. A deportation order. An awkward ride back across the line.
But that’s not the whole picture. In a number of countries, the penalties for unauthorized entry sit in a different category entirely, one that includes mandatory corporal punishment, indefinite detention with no court date, and in at least one case, a shoot-on-sight policy backed by law. The gap between the lenient end and the severe end of global immigration enforcement is not a matter of degree. It’s a matter of kind.
What follows is a look at eight countries where that gap is most stark. Not places where enforcement is inconvenient, but places where crossing the wrong border without the right paperwork can reshape the rest of your life.
1. North Korea
Of all the countries on this list, North Korea is the only one where the act of trying to leave, not just enter, can carry a death sentence. North Korea treats movement across its borders as a matter of state security, not immigration administration. The border is not a line on a map. It is a wall around an entire population.
On paper, the law is relatively modest: a sentence of up to two years of “labor correction” for the crime of illegally crossing the border. In practice, the sentence a person actually serves depends heavily on what the government decides their motivations were, and those determinations are made without any meaningful legal process. According to the State Department’s 2024 Country Report on North Korea, individuals attempting to depart the country without authorization are routinely detained, and arbitrary arrest for this offense is well-documented through years of defector testimony compiled by multiple monitoring organizations.
Individuals, including children, who cross the border with the purpose of defecting or seeking asylum in a third country are subject to a minimum of five years of “labor correction.” In “serious” cases, people are subjected to indefinite imprisonment and forced labor, confiscation of property, or death. The government has also maintained shoot-to-kill orders for those attempting to leave without official permission. The country does not recognize asylum, does not cooperate with the UN refugee agency, and its law explicitly criminalizes both defection and attempted defection.
2. Malaysia
Malaysia’s approach to illegal entry is, in one respect, entirely modern: it is encoded in detailed legislation, enforced by a functioning bureaucracy, and applied systematically. What it actually contains is where things get troubling. Malaysian law makes all irregular entry and stay in the country a criminal offense, with no distinction among refugees, asylum seekers, trafficking victims, and undocumented migrants.
A conviction for irregular entry carries a penalty of up to five years in prison and six strokes of the cane. The cane is not a metaphor. It is a mandatory sentence applied to adult male offenders, carried out in prison. Malaysia also places no legal limit on the length of immigration detention, leaving migrants at risk of being held indefinitely. A 2024 Human Rights Watch report documented roughly 12,000 migrants and refugees, including 1,400 children, being held in conditions that put them at serious risk of physical abuse, with detainees spending months or years in overcrowded facilities and no access to judicial review.
Malaysia has not signed the UN Refugee Convention, which means the government does not distinguish in law between someone fleeing persecution and someone who overstayed a tourist visa. Both arrive at the same holding center, and both are subject to the same mandatory penalties. The UN refugee agency has been barred from accessing immigration detention centers since 2019.
3. Saudi Arabia
Saudi Arabia’s enforcement of its immigration and residency laws is not just strict; it is industrial in scale. According to Gulf News reporting in January 2026, more than 14,600 people were deported from the Kingdom in a single week, following joint inspection operations carried out by security forces in coordination with relevant government agencies, part of what the report described as one of the most extensive enforcement drives in recent years.
For individuals who enter the country illegally, the first consequence is immediate arrest and deportation. Under the Residence Regulations, any foreigner who enters without authorization is imprisoned until deported. The penalties escalate sharply for anyone who facilitates unauthorized entry. Saudi Arabia’s Ministry of Interior has classified sheltering, employing, or concealing residency violators as major offenses, carrying penalties including imprisonment of up to 15 years, fines of up to one million Saudi riyals, and confiscation of vehicles or property used in the offense.
The enforcement apparatus is built around the idea that illegal entry and unauthorized residency are serious crimes, not administrative inconveniences. Individuals found in breach of residency laws face fines, detention, and future entry bans, while those who assist violators by providing transport, accommodation, or employment risk up to 15 years in prison and substantial asset confiscation.
4. Hungary
Hungary’s approach to illegal entry is the most aggressive in the European Union, and it has been a point of open conflict with EU institutions for years. A global survey of border laws confirmed that Hungary changed its immigration laws to make illegal entry a crime punishable by up to eight years in prison. That puts it well ahead of most Western nations, where unauthorized border crossing typically results in detention and deportation rather than criminal prosecution with multi-year sentences.
The legal architecture goes further than just criminalizing the crossing itself. Hungary’s parliament also passed a law making it a crime to help an unauthorized migrant claim asylum. That means lawyers, NGO workers, and medical personnel who assist undocumented people in filing asylum applications can themselves face criminal charges. The law prompted a formal rebuke from the European Commission, though enforcement on the ground has continued.
In some jurisdictions, illegal entry by a group carries harsher punishment than an individual crossing, and Hungary has leaned into this distinction. The country also constructed a fence along its borders with Serbia and Croatia and has consistently rejected EU-level attempts to share refugee and migrant numbers across member states. The legal reality for anyone caught crossing is stark: prison time, not a fine.
5. China
China’s approach is consistent with its broader governance model: comprehensive, centralized, and not particularly interested in international norms when they conflict with state priorities. The same worldwide survey that placed 162 countries as having criminalized illegal entry also confirmed China among those most systematic in how it applies those laws.
What separates China on this list is not primarily what it does to people who enter its territory without authorization. It’s what it does to people it catches crossing out. North Koreans who flee into China are classified by Beijing as economic migrants rather than refugees, which means they can be detained and returned. They face severe punishment on return, including those who had done nothing more than cross for food. The sentence a returned individual receives depends heavily on factors determined without any formal legal process.
Imprisonment for illegal entry ranges from several months to fifteen years depending on the circumstances, with heavier sentences typically applied when entry involved force, vehicles, or property damage. China also allows for administrative detention that runs parallel to, and sometimes instead of, criminal prosecution, meaning a person can be held without a formal charge or a stated release date.
6. Brunei
Brunei is a small country with a big rulebook. Its immigration enforcement sits within a broader legal framework that draws heavily on religious law and holds to a strict conception of national sovereignty. Brunei criminalizes illegal entry with provisions for removal, prosecution, and imprisonment for those who enter or remain without authorization.
Countries examined in the global survey show a wide range of punishments for illegal border crossing, including deportation, fines, detention, community service, and varied terms of imprisonment. Brunei sits toward the punitive end of that spectrum. Entry through anything other than a designated port of entry is prohibited by the Immigration Act, and enforcement is active. The country does not have a large undocumented migrant population by regional standards, in part because the legal consequences of illegal entry act as a genuine deterrent.
Brunei’s framework treats unauthorized presence as a criminal matter from the outset. There is no civil pathway equivalent to the kind of administrative processing that exists in, say, Australia or Spain. You are either legally in the country or you are a criminal, and the legal system responds accordingly.
7. Kuwait
Kuwait’s immigration law is among the oldest on the Arabian Peninsula, and its penalties for illegal entry have been on the books in substantially similar form since 1959. Among the 124 countries identified as treating illegal entry as a criminal offense, Kuwait is one of the Gulf states where that designation carries real weight. The law provides for both imprisonment and fines for anyone who enters without authorization, with deportation as the endpoint regardless of whatever other penalties are applied.
The kafala (sponsorship) system that governs migrant labor in Kuwait means the line between legal and illegal status is extremely thin and often outside the migrant’s control. A worker whose sponsor cancels their contract can become undocumented overnight, through no action of their own, and then face arrest. The system has been criticized extensively by international human rights organizations, but it remains largely intact.
In practice, Kuwait’s immigration enforcement falls disproportionately on migrant workers from South Asia and Sub-Saharan Africa who may have arrived legally but lost their legal status through circumstances tied to employer behavior. The experience of illegal entry and unauthorized presence can, in these cases, begin with a phone call from a sponsor, not a border crossing.
8. Belarus
Belarus has tightened its border enforcement significantly over the last several years, partly as a function of its broader political isolation from the West and partly as a deliberate foreign policy tool. The country was accused in 2021 and 2022 of actively facilitating migrants from the Middle East and Africa to cross into EU member states Poland, Lithuania, and Latvia, using vulnerable people as leverage in diplomatic disputes. Inside Belarus itself, however, the legal framework for unauthorized border crossing is severe.
Imprisonment for illegal entry can vary from several months to fifteen years depending on the circumstances under which the entry occurred. Belarus applies criminal penalties for illegal entry that include substantial prison terms, and its political situation means that detention conditions lack meaningful independent oversight. The country does not have a functioning asylum system in the conventional sense, and individuals who enter without authorization have essentially no legal recourse once detained.
The pattern in Belarus is also unusual in one respect: the state has at various points both criminalized those who enter illegally and channeled migrants toward its borders for political purposes. Harsh domestic penalties for illegal entry, paired with using migrants as political instruments at the European frontier, represents a particularly cynical use of immigration law.
What Border Policy Actually Tells You

The countries on this list share a surface-level characteristic: harsh penalties for unauthorized entry. But what actually connects them is deeper than that. In each case, the severity of the immigration law is an accurate reflection of the broader relationship between the state and the people within its borders. North Korea’s shoot-on-sight policy for would-be departures tells you everything about what kind of country it is. Malaysia’s indefinite detention of refugees, including children, with no legal time limit, tells you something about how much weight its legal system gives to individual rights when they inconvenience enforcement goals.
Even in countries that impose only civil or administrative penalties in ordinary circumstances, criminal sanctions often apply when aggravating factors are present. Countries also frequently exempt undocumented entrants from penalties when they are seeking asylum or otherwise entitled to international protection. That carve-out matters enormously in practice, because it is the difference between a legal system that is strict but coherent and one that treats the most vulnerable people the harshest. The countries on this list either do not make that distinction in law or routinely fail to make it in practice.
None of this is an argument for open borders or against immigration enforcement. Countries have the right to control who enters their territory. The meaningful question isn’t whether there should be enforcement, but what kind of country would use caning, indefinite detention, and a shoot-to-kill policy as its tools. The answer to that question is, in each case, already visible everywhere else in how these governments operate. If you or someone you know has been affected by detention or displacement, UNHCR provides resources and referrals for refugees and asylum seekers worldwide.
AI Disclaimer: This article was created with the assistance of AI tools and reviewed by a human editor.