Whether these actions work or not, it is not immoral to attempt them.
There is no 'human right to profit at the expense of others'.
It takes quite distorted incentives for the obvious course of action to be (1) build a house => (2) leave it empty. For that to make economic sense for more than maybe 12 months, the government has to have really come in swinging with crazy policies.
The discomfort you experience of having to let your bought-for-the-purposes-of-renting properties is less important to me than the discomfort of the person you're evicting.
You want to be a landlord? Comply with tenant laws. If you don't like it, you won't be missed, it's not like you can leave and take that apartment with you.
In China, rental returns are so paltry compared to purchase prices that many property speculators simply don’t rent out their properties (renovating a property reduces its value in that market, so leaving it unfinished is a winning strategy). That has nothing to do with regulation and everything to do with an out of control property bubble, but the same principle applies. Here in Seattle, being a landlord is an increasingly untenable position, especially for private individuals. They are instead in it just for the appreciation (property bubble again) and so it makes sense for them to just leave the house vacant and keep squatters away.