Yes, it's not legal, but if you're just sharing with your neighbour, nobody's gonna know. This assumes you know your neigbour well enough to know exactly what they might be using it for.
You'd be entirely responsible for both you and your neighbour's internet activity.