1. Did you consider camping in one of Hong Kong’s official free campsites instead? I don’t remember seeing any rules that would prevent long-term camping. So, besides the less convenient location and perhaps raised eyebrows of their staff (if they regularly saw you at the campsite registration desk), it seems like a safer option?
2. I assume you were a taught student, not a research student, right? (If you were a research student, you could have slept in your assigned office, I guess.)