A Swindon man did not know it was illegal to order a gun from Poland resembling one from Fortnite as a gift for his son.