To clarify my objectives: I want to portray convincing challenging opposition. I have no agenda for "teaching" the players anything (indeed, such a style of DMing is anathema to my own). Perhaps a bit more information is in order, since the scenario is a complicated...
SPOILER: Spell & Crossbones players, avert yer eyes, me hearties! Or it'll be Davey Jones locker for ye!
I have a group of pirates led by 2 tentatively allied minor villains (seawolf & spy) preparing a dual-pronged approach: The seawolf will lead the majority of pirates to confront the PCs directly, requesting that they turn information and one of the PCs over. The spy will take a small number of pirates with muskets into the woods where they hide very well (thanks to a special group stealth ability of the spy & high pre-rolled Stealth check).
My purposes in running this encounter are (a) to reveal that some of the PC's enemies are on to them, (b) present the opposition in a challenging and credible way (this is always a goal of my DMing), and (c) guide a PC separate from the rest of the party back into the party as he has overheard the ambushers plotting and follows them.