Cooperation can smooth neighborhood tensions