Economic intuition suggests that enforcement errors incentivize crimes, therefore officers must be penalized for committing such errors. Legal scholars argue that if penalties for errors are severe, officers may become timid while policing (thereby encouraging crime). We evaluate these arguments in a model where officers invest in competence. Competence increases the officer's ability to identify criminals. Low sanctions for errors encourages bold policing by officers but may still raise the equilibrium level of crime because it also discourages investments in competence. Granting immunity to only competent officers (“qualified immunity”) reduces both errors and crimes when competence is observable. (JEL K4, K42, L5)