To regulate, restrain, or prohibit the keeping or running at large of horses, cattle, sheep, swine, geese, goats and other poultry and animals, or any of them, to create the limits of districts within which the same may be kept and the conditions and restrictions under which they may be kept.