Also: if the business is starting to make money, then that's the ideal time to really concentrate on it. Iterate, iterate, iterate. It's hard to do that though if you have to step away and deal with the legal stuff instead; it becomes a distraction at exactly the wrong time, and you don't even know ahead of time how long it will take to deal with.
There's a reason that YC helps their startups incorporate, even before they have a product to sell. It's best to just deal with that immediately, get it out of the way, and then get to work on the product. (This is also the advice of most of the books I've read on starting or maintaining a business.)
I did it your way, actually, and this year I have a tax bill that I cannot afford. You might say that I should have handled that when I knew that the business had grown that much, and you'd be right, but the problem was that I was too busy making money and keeping up with demand to slow down and deal with the legal and tax stuff. Now I have a much larger problem than I would have had if I'd taken care of this in the beginning.
And I'm a U.S. citizen. I have no idea how it would work for someone who isn't.