Rent a residential apartment out but mark it down as a commercial space.
You rent out the flat as office space. In the agreement you specify that nobody can sleep there and the tenant agrees to that. You can verbally tell them that in the past you worried about trying to evict people who lived in your flat so you're renting it as an office but then make it clear to them that if you do discover somebody is sleeping there, the minimum notice period is a month.
Are any laws being stretched with this scenario ?
No laws being stretched and with a contract saying they aren't allowed to live there, it would be hard for them to claim that they do have the right to live there.
Another solution is to rent as a residence but for the tenant to provide a signed statement with an address to which they agree to be evicted to. The downside there is that you still need to evict them. With a B2B office rental agreement you can just change the locks.