Write a paraphrased version of the paragraph:
Specific restrictive measures may need to be imposed to prevent the internal security of the EU from being compromised.
In order to avoid a threat to EU internal security, specific restrictive measures may be required.