According to Oda, a "certain professor" will explain the complex mechanisms behind all of the Devil Fruits in the series at some point in the future.[1]. Dr. vegapunk is said to be 500 years ahead of everyone else when it comes to intelligence. His work includes discovering the secrets and uses of seastone, the secrets of how Devil Fruit powers work, the co-discovery of the Lineage Factor and its applications, and various other scientific achievements that are said to be at least 500 years ahead of current technology.[3][4. So that would explain a lot if vegapunk knew about the ins and outs of devil fruits if he knew how to counter them.