Consider a person comes to the US with an F-2 visa status and has a plan to get his/her green card in the next year, but at the moment he/she likes to start a commercial website or mobile app but for free, up to he/she could get his/her green card.
Is it legal for him/her and won't cause a problem for him/his green card in the future?
PS: By a free commercial website/mobile app I mean something like websites/applications those offer a free access for a period of time(Free trial), or offer a free access to some basic utilities(and charge users for money for premium access). Or games those are free but charge users for money for extra coins/points/etc.).
Can an F-2 visa holder start the business for free, then after he/she gets his/her green card/ he/she starts the post trial/premium part of the business as well?