If you can convince yourself that keeping your fish in a terrified state to encourage egg-eating is an ethical thing to do...and while I'm sure that this kind of psychological abuse would probably work...bear in mind that as soon as things settle down again, the female will lay another clutch and the cycle will repeat. Producing a clutch of eggs is a physically taxing biological exercise, and she will be doing it much more frequently if she never has the chance to tend the eggs and the young.
If you don't want a pair of fish to breed, you could...gee, I don't know...separate them? Just sayin'...