I normally bring mine in a week before farrowing, but I find they all want a last run around before settling down to give birth. I learned about the importance of gate pins when one flung off the gate and went walkabout just hours before farrowing!
A bit of exercise does them the world of good and helps them settle. Good luck with it all.