For example, if Greninja was poisoned, can it cure its poisoning by using Toxic Spikes? I'm wondering if Kecleon and Greninja can use this in replacement of Lum berries.
No.
Similar to how if you soak a poison type Pokemon and poison it, it will still have the poisoned status if it switches back.
The source might explain it better.
Hope I helped!
Source