Four individuals are sitting on a small dock by the water as a boat sails by.
Four people sitting near the ocean.
You can not infer they are sitting near the ocean.
Just because people are sitting on a dock by the water does not mean they are near the ocean.
Not all docks are near the ocean.