You can invest your money in the stock market all you like. Just don't invest anyone else's money. You don't even have to live in the US to invest here. We'll take your capital! F-1s also can invest in rental real estate, bonds, antiques, etc. Just don't take a potential job away from a US citizen.
This post does not constitute legal advice, nor does it create an attorney-client relationship. Postings are based only on the information provided and you should consult an attorney in your area before relying on information contained in this post.