Studio tours do not allow you on set during production, but a few do allow you to walk on the sets when there is no actual production. So in a way, going when the cameras aren't rolling can be better.
Of course, if your goal is to maybe, just maybe, catch a glimpse of a star, then going when TV shows aren't shooting might not be the best option. But there are movies being shot in June.