The basic idea here is this: God made everything something from nothing. That is to say: He made the world and He is not the world. Thus space- time is also His creation.Thus he is not absent from space. But he is not in space either. The entire concept of space simply does not apply to Him. Trying to apply the concept of space to God is like mixing apple and oranges.
There is lot to go into about this but to be short I wanted to bring from the very important commentary with no named author on the first four chapters of the Mishne Torah. There he brings the contradiction in the verses. One says, "Do the commandments in order to fear and love God." The other says, "Fear and love God in order to do his commandments." He answers: There are two kind of fear. One is fear of punishment. The other is awe. Thus the verse intend to tell us to come to the lower fear in order to do His commandments;-- and to do his commandments in order to come to the higher awe of God. Thus the purpose of the commandments are to fear and love God.