I used to be pro squirt bottle, but I read something on lemmy once about how it’s actually damaging to your relationship with your cat.
I don’t have that exact article, but here’s one I just snagged off Google. https://www.fearfreehappyhomes.com/squelch-the-squirt-why-spraying-water-doesnt-work-to-train-your-cat/
Positive reinforcement is the best method for correcting bad behavior in pets. It’s tough because it doesn’t stop the bad behavior now.