He went into the bathroom, hoping to have sex with the woman, but instead was arrested, according to police.