A little boy with a shirt, shorts and socks on, standing on the beach.
A boy is watching the ocean.
You can not infer he is watching the ocean.
Just because the boy is standing on the beach does not mean he is watching the ocean.  He might be watching something else.  Also, there are many kinds of beaches so just because the boy is on the beach does not mean he is at the ocean.
Just because standing on the beach does not mean watching the ocean.