As mentioned above, just know how to use it at ordinary times. In fact, even Koreans themselves, including experts, are still confused about the problem of Korean spaces. They have been discussing this issue until now, but there are still differences in some aspects, or they can't come to a conclusion.
So, as long as you have a basic concept, it's ok. If you use it too much, you will naturally know some special situations ~
The structure of Korean is generally: subject+subject particle+space+object+object particle+space+predicate.
Among them, attributes, adverbials, etc. , appear independently.