The situation is confirmed
The Tesla gets damaged even if I spawn any "rampant fire" nearby directly from the editor. At the same time, normal fire does not cause damage.
This can't be at the expense of fire immunity, as some of the spawned entities dealt pure fire damage.
The damage is dealt regardless of whether I create fire/puddle for neutrals or enemies.
Unfortunately, I do not see that I could change.
An invisible entity is created around the Tesla. Maybe it takes damage and passes it to the tesla turrets.
Perhaps somewhere in the depths of the K2 code, there is a filter which sources of damage need to be excluded. And it takes into account the standard fire/spitts. If it is true then it might be better to give this invisible entity 100% damage resistance.
At the moment, you should place your Teslas away from places where bugs can spit.