Yes. If it is not branded and generic product, it is a high possibility it is legal to sell online and offline. This is the way I would recommend you go.
The issue I have with selling counterfit, besides the obvious fact that it is illegal, is that you will never be able to scale. It is not a smart business model. There is so many ways to make legit money, that the energy it is going to take you to launch the business can be invested in something legit. And it will be scalable without fear of getting caught.
I'll give you an example. There is warehouses in the United States that sell pallets of returned items. If you chose the right company, and you have honest sales representatives, you can make a great living doing that. These are high end, branded products. Yes some products won't work, but the majority do, if you chose the right company. It will take you the same amount of effort to do something like this, and make huge margins.
The reason I would imagine that you are leaning towards DHGate, is because you don't have any other ideas to make money. But there is tons out there if you search and are willing to plunge in on a very small scale to test the market.
My advice is stay away from counterfit items. It looks like easy money, but in reality there is never such a thing as easy money. All money earned isn't easy to earn. So I would invest that energy into something else.
That is just my opinion.