Hi @hasnizan,
The simple ways is by regularly changing the WIFI password and using the latest WIFI encryption(e.g WPA3) to your WiFi network. It works every time.
You can block that devices by block their MAC Address by login to your WiFi Router