Several times in the movie, Cobb says that no one should touch your totem, which would otherwise lose its ability to tell you if you're in a dream or not.
I understand, there is no "magical" ability in the totems. Just a way they are done/built, how their owner feels them so that you're the only one knowing how they should behave in reality and in dreams.
The other people wanting to trap you in a dream would then not be able to recreate all these details, which will then help you know if you're in a dream or not.
Concerning Cobb's totem, the top: it was Mal's totem, before being Cobb's totem. Then Saito also plays with it near the end of the movie. Several people touched it then and can know how it feels, even if they don't know the forever-spinning thing.
But Cobb also tells to Ariadne during the movie the special ability of the forever-spinning of the top in dreams. Ariadne could, mixing this with the information of people having touched the totem, recreate this in a dream and then fool Cobb.
As it seems she wants to help him, she knows all that, as well as his after-work dream sessions, she could have built a dream to trap him and having the top falling in the dream, having Cobb thinking he's in reality. In particular, the end could be a dream with Ariadne influencing the top's spinning.
At the end, is the top's spinning a reliable fact to know if he's dreaming or not?