It is very important to have BIS hallmark (916, 750, 999) on gold.
Real gold has a clear and neatly engraved mark.
Gold is not attracted to a magnet.
Jewelers check purity by acid test.
Since real gold is denser, its weight feels different.
There is a clear difference in color and brightness.
The jeweler checks for subtle marks using a loupe.
Modern machines detect purity instantly.
There is also a purity marking on coins.