24. Nothing in Part II or III shall render unlawful an act done for the purpose of safeguarding national security, if the doing of the act was justified by that purpose.