This is illegal. Especially after adopting the new system of foreigners' residence card, the management is more strict. National health insurance varies according to your income. If you have reason to prove that your financial ability is not enough, you can apply for relief.
Further reading: How to buy insurance, which is good, and teach you how to avoid these "pits" of insurance.