If you attempt to assign someone of one gender to a Group assigned to a different gender during the assignment process, you will be prompted with the ability to Cancel the assignment, or Assign to the group anyway.

This prompt will appear if there is even just one in the assignment group list that doesnt meet the criteria of the group you are moving them to.

User-added image