No horse or other grazing cattle or swine shall be suffered to run at large within the principal inhabited parts of this Town or to remain or loiter by the roadside or the roadside of any railroad corporation, or to feed upon or root up the herbage therein, either with or without a keeper, and no person shall voluntarily permit the same to go upon any sidewalk, harnessed or unharnessed.