As others have said, there's so many variables its impossible to answer.
Do you have the tech lead? Are you beyond in tech? Can you bribe other civs into the war on your side? Is there a risk another civ will dogpile on you if you go to war with the first civ? Do you have some choke-points that can absorb the first invasion waves to help even out the numbers? Are you reasonably sure you can achieve your objectives (whatever they may be) in a timely matter and get out of the war before you start to feel it on the home front? etc, etc, etc