The temperature of the blue flame on a stove should be above 1000 Celsius, well above what’s required to oxidise diamonds. They won’t catch fire, but your diamond pan will erode. Once you remove it from the flame, it won’t continue “burning”.
Should be safe on electrical stoves though.