The man is taking a picture of the beach.
the man is inside
The beach is outside the man cannot be inside
He can either be inside or taking a picture of the beach.
You can’t take a picture of the beach inside