Why was avoiding conflict with France and Britain so difficult during Thomas Jefferson and James Madison's presidencies?

Both presidents wanted the U.S. to fight the Barbary Pirates.


Both the British and the French were supporting Tecumseh.


Both the British and the French would attack neutral trading ships.


Both presidents wanted to create alliances with the British.