Usually they will form compounds with other characters, and the compounds will be unambiguous. For the first two characters, you have stuff like 水果、苹果 ("fruit", "apple" respectively); 包裹 for "package". 裹 is also a verb by itself meaning "wrap":
> 我把身子用毯子裹上。
> Wǒ bǎ shēnzi yòng tǎnzi guǒshàng.
> I wrapped myself up in a blanket.
This last example shows that just like in English, words that are pronounced the same in Chinese can be distinguished by part-of-speech. You'd rarely confuse "red" the color and "read" (past tense), even though they're pronounced the same, because the first is an adjective and the second a verb (except in the old pun "What's black and white and read all over?", where you think "read" is actually "red" due to the grammatical structure of the sentence).
This is a pretty good explanation of how Chinese characters work, explained via English words: https://www.zompist.com/yingzi/yingzi.htm
(The other three "guǒ" characters are quite rare, so may be literary-only.)