It's absolutely proper for you to invest, on your own, but if the ex-wife finds out that your investment is made with any of your husband's earnings from income, or interest from one of his accounts, she can invade the investment up to 50%.
But, if his money is absolutely NOT going into your investment, you should be safe.