While it’s not a 100% guarantee of prevention, they absolutely can help prevent infection by significantly boosting immunity. Even previous boosters can help prevent future variants:
They can also greatly lower the chance of catching the disease in the first place by increasing immunity, so it seems like I’m not the one who needs a lecture about how the vaccines work.
Unless someone asks you, keep your fallacious medical advice to yourself.