A key point to remember is that the corporate veil is fragile. You have to treat it carefully and protect it at all times. Once you set up your entity and run it properly you will have created a corporate veil that will be extremely difficult to pierce if it can be pierced at all.
Some investors set up a new corporate entity for every project. For most people that would be overkill. Some investors in highly litigious markets do so and consider the effort and expense just the cost of doing business. This is a matter that you’ll have to consider for yourself.