legal and administrative measures to prevent offenses