The sheriff shall preserve peace, and to accomplish this object may sponsor, supervise, or participate in any project of crime prevention, rehabilitation of persons previously convicted of crime, or the suppression of delinquency.
Ca. Gov. Code § 26600