Because of your immigration history and what happened at the airport, I would recommend contacting a qualified attorney to fully evaluate and discuss your case.
Legal disclaimer: By answering this question, there is no intention to create, nor does it create an ongoing duty to respond to questions. An attorney-client relationship has not been formed. The answer is not intended as anything other than the opinion of the author. It should not be relied upon as legal advice. The answer given is based upon the limited facts provided by the person asking the question. To the extent additional or different facts exist, the response might possibly change.
Given the previous refusal of entry and the pending I-130 on your behalf, the likelihood of you getting an F-1 visa is very close to 0. That being said, even if you get married, you may still encounter problems coming back in (I would need to get all the details of your case to advise you).
This is definitely not something you should be doing without an attorney.
Marriage visa .... yes.
Hiring a lawyer this time .... YES
PROFESSOR OF IMMIGRATION LAW for over 10 years -- This blog posting is offered for informational purposes only. It does not constitute an attorney-client relationship.