(51) Nothing in this Part of this Act shall affect—
(a) the powers conferred on immigration officers by section 4 of and Schedule 2 to the Immigration Act 1971 (administrative provisions as to control on entry etc.);
(b) the powers conferred by virtue of section 41 or 43B of, or Schedule 7 to, the Terrorism Act 2000 (powers of arrest and detention); ...
(ba) the powers conferred by virtue of Part 1 of Schedule 3 to the Counter-Terrorism and Border Security Act 2019 (powers of detention);
(bb) the powers conferred by virtue of section 27 of and Schedule 6 to the National Security Act 2023;
(c) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(d) any right of a person in police detention to apply for a writ of habeas corpus or other prerogative remedy.