L2-EAD-can I keep working for the same company for which I was working in India?

Hi,

I have a valid L2 visa done through my husband’s firm and will be traveling to US soon.

I am currently working in India and planning to take a long leave and goto US and apply for EAD.

my company is ready to give me a US project once I have my EAD card.

will there be any legal implications if I keep working for the same company in US as I was working in India?

please let me know.

thanks!