Does your two-year-old also turn on your stove burners? That seems a lot more dangerous. Put them out-of-reach. Worst case: they press the buttons anyway and you have to open an app and cancel the orders.
Stove burners are deliberately a lot less easy to activate than push buttons.
It's not the knob that stops them, it's being disciplined by parents.