Don't you remember Hillary's email scandal where "intent" was important in the eyes of the law?
Intent regarding immigration? See for yourself from a lawyer:
2. Apply for a green card through marriage soon after arriving as a visitor.
Immigrant
intent is something that U.S. immigration laws take very seriously. The
intent when you arrive on a visitor visa is not to have any immigrant
intent – sounds like a tongue-twister, but what it means is that you are not supposed to want to get a green card or some other type of visa that allows you to stay legally in the U.S. when you enter with a visitor visa. Your intent should only be to come to the U.S. for a temporary visit.
Let’s say you arrive on a visitor visa on Sept. 1, 2015, and you get married to a U.S. citizen on Sept. 10, 2015. If your U.S. citizen spouse then files a family petition for you along with your adjustment of status application to become a lawful permanent resident, this will raise a big red flag with immigration officials.
Your case can be denied for having “immigrant intent” when you arrived on your visitor visa. A green card application like this within the first 30 days of arriving
is going to be presumed to show immigrant intent – meaning that it will be presumed you were trying to avoid doing it the right way.
http://heitzimmigrationlaw.com/2015/09/5-things-not-to-do-when-coming-to-the-u-s-on-a-visitor-visa/