I agree that rules against jeans make limited sense. It makes more sense to forbid worn down or shabby looking attire. But one should abide by the rules one signs up to.
If it's the only competition in town, and the rules are unjust, and the organisation in question considers you #1 chess player in the world… I can hardly imagine better circumstances for civil disobedience.