I used to ref rec soccer. Half the coaches didn't know the rules, which is fine, but thought they did.
In soccer, when a ball is kicked high and arches out of bounds but returns and lands in bounds, it's out of bounds. A player can stand out of bounds and control that ball so long as it is touching or inside the line.