if you bought this hat through regular channels and the price is reasonable, then it is probably a real NY hat. If the hat was bought in an unknown channel, or the price is obviously lower than the market price, then it may be a fake.
In addition, you can check the label, package and website of the hat to confirm its brand and authenticity. If you are still not sure, you can seek help from brand companies or professionals.