I typically do this...
First I found out by vote what the party wishes to do next in the adventure. Then, I write and prepare enemies for that segment of the campaign during which time I railroad them to complete that segment... because, let's be honest, I haven't prepared for anything else...