The pirates can overcome the weak defense you propose
Possibly, possibly not. Even a weak defense could kill a few pirates, thus discouraging the activity, as a whole. A strong defense could kill a lot of pirates.
First, you must be alerted to the approach, which is what I proposed.