What is the purpose of preventing the violation of State laws and security, custom, immigration, health, and environmental regulations? 
The purpose is to maintain compliance with and ensure adherence to state laws and regulations related to security, customs, immigration, health, and the environment.