In the same way, if you are in a grain field that belongs to someone else, you can pick heads of grain and eat the kernels. But don't cut down the stalks of grain and take them with you.
If you go into a vineyard that belongs to someone else, you are allowed to eat as many grapes as you want while you are there. But don't take any with you when you leave.