A controversial dog ban at a popular beach just days before the summer kicks off has sparked backlash.