Maybe by binding the idea of smartness with the ability to think beyond the given and possibly not blindly obey exogenous rules. Of course smartness is a relatively independent parameter from ethics. If the law requires contributing to some genocides, blindly obey is not the same ethical dilemma as if it forbids to practice torture and murder.