Build into the path, not beside it. Creeps walk around your towers, so a wall makes them take the long way — and every extra step is another second under fire.
You can never fully block it. Go ahead and try.