If your syrup changes color, develops an off smell, or if you see any mold, it's time to discard it. In my experience, properly stored syrup rarely goes bad before a month.