If you know how or direction they are coming you could try some deterrent type spray. Raccoons scat around I would not want as they can carry parasites. For that matter possum, skunk etc.
Problem with spray is would need to be reapplied, but there are many recipes on the internet.
I was helping...