The structure is designed to stop Gaza-based militants from swimming to the Israeli coast once Israel pulls out of Gaza and parts of the West Bank .