Build it mid-river, on the borderline. Tangled razorwire underneath will allow water to pass but not intruders.
I could live with that.