All of the more common livebearers have the same basic way to tell males from females. The males have a feature called a gonopodium, it is the modified anal fin that is more of a line shape than a fin shape. The fin we are talking about is the one right next to where the fish eliminate their wastes.
This is a male with the modified shape forming a gonopodium.
This is a female of the same species. You can see that her anal fin is a fan shape or maybe you would call it a triangular shape.
In this particular breed the black spot on the anal fin is a quick way to spot the females because the males don't seem to have that, but the shape is the important thing to notice.
There is another group of livebearer fish that do not have a gonopodium but use what is called an andropodium instead, that is the goodeid group, also known as the split fins. They are called splitfins because the way you spot a male in that group is by the split nature of their anal fin.
This is a male Xentoca eiseni which is a goodeid.
This is a female of the same species, again the fin is a simple fan like shape.
Now it will be almost impossible for anyone to fool you into thinking a male is a female or that a female is a male in most freshwater livebearers.