I personally would stay away from any chemicals around a young child. I'm not sure if this is true, but my great aunt said she got her house sprayed years back and somehow her house caught on fire and the investigator told because the chemicals they used were flammable. I think if that were the case, more houses would catch fire and there would be lawsuits.
But, regardless, chemicals are poisonous, I would stay away. We get the little red ants every spring; they get so bad they even crawl on walls and ceilings. They came again this year, but I poured liquid gel ant killer in the crack they were coming in thru and we haven't seen anymore since then.
I hear borax is good if you add it with something sweet to eat, but it's highly poisonous too, so if your baby or pet got a hold of it, you'll be worse off.
Search for organic ant control and see what you can find. But, I'd stay away from chemicals - they just aren't healthy.
Good luck.