The transmission of syphilis from a pregnant woman to her infant can occur at any stage of pregnancy, but the risk is highest during the early stages of maternal infection. The bacterium can cross the placental barrier, infecting the fetus and leading to congenital syphilis.