There is no such full-proof way to protect your account from invalid clicks, but you can follow some guidelines. You can refer this page from Google official website.