We are a part of God. That’s why he doesn’t want us to do things that are wrong! We are in Him and He is in us. John 14:20 “On that day you will realize that I am in my Father, and you are in me, and I am in you”.
This is also why we can do miracles, because we know His will because He lives in us.
The way we know with certainty that we love Him is when we keep His commandments. 1 John 2:3-6