In other words, every hack is legal?
The web is open. If you put your a chair out in a public square with a sign on that back that says, "Only paying members can sit." don't be surprised when someone random sits in it.
A better analogy would putting your chair in a private room with a locked door and sign on the door that says ask management for access to the chair. Anyone who breaks in to use that chair definitely knows they aren't supposed to be there.