It wasn’t before 2024 but is slowly aligning its immigration enforcement with the rest of the world.
Pick a random country in the world and try to enter illegally, overstay your visa or commit a criminal act and tell me what happens. (hint: you’ll be detained and deported immediately)