Every person to whom an infant, under the age of six years, shall be confided for nursing, education, or any other purpose, who shall, with intent to deceive any parent or guardian of such child, substitute and produce to such parent or guardian another child in the place of the one so confided, shall, upon conviction, be punished by imprisonment in the penitentiary not exceeding seven years.