When residents feel like they can talk to the police, officers can stop crime before it starts.