A person commits a summary offense if the person kneads or beats or pads the udder of a cow, or willfully allows it to go unmilked for a period of 24 hours or more, for the purpose of enhancing the appearance or size of the udder of the cow, or by a muzzle or any other device, prevents the cow's calf, if less than six weeks old, from obtaining nourishment, and thereby relieving the udder of the cow, for a period of 24 hours.