When we park close to the curb or put our garbage and recycling container wheels snug against the curb, we are creating our own mini dams, and mini lakes that overflow onto the sidewalk, increasing the risk of flooding by our own avoidable actions. You can see this happen regularly even in mild storms.
Leave a gap of at least 12 inches and leaves and water will not pile up as much. Help yourself, don't harm yourself.