Optimal Behavior and Density-Dependent Predation