You can teach them that that is not acceptable and they will learn. It is even easier to discourage such things from a young age.
Also, it's good to never give them your food and make them learn that they never get food from you at any time other than their feeding time (barring the occasional treat) and always only in their food bowls.
A lot of it is consistency and discipline. I've had multiple cats start the behaviour of swiping/pushing things off surfaces but it wasn't hard at all to curtail that. While I've raised a non-trivial number of them, I've never had a cat which considered that s/he got food when humans are eating.