They can detain you and strip search you. The new law would make it up to US border service agents to make that call. 

If you decide to leave (not enter), you can be detained. If you are deemed uncooperative (i.e. you insist on your right to leave), you can be arrested.