The Barbary Pirates. 1801-1805, then again in 1815. And in those wars, we pursued the war into the sovereign territory of states with whom we were not at war. The Hague Conventions quoted above also state (which Rosebud conveniently ignored) that in order to enjoy the benefits of neutrality, a neutral must deny the belligerents use of its territory.
Britain engaged in wars against various tribes and sub-state organisations all over the world for over 100 years.