There is some leeway within the EU regulation. Denmark have had some form of border control for years now. You can't do a hard border like previously, but that doesn't prevent countries from patrolling, checking checking passports or even turn away certain people.
The effectiveness of that type of border control is debatable, but it is already being done by other EU members.