difference between security and protection in law