The conditions completely determine the order of the group to be $\frac{n!}{2!}$ (see for example my answer to Degree of a permutation group), so we know it will be a subgroup of $S_n$ of index $2$. The only such subgroup is $A_n$.
The conditions completely determine the order of the group to be $\frac{n!}{2!}$ (see for example my answer to Degree of a permutation group), so we know it will be a subgroup of $S_n$ of index $2$. The only such subgroup is $A_n$.