No legal advice, but I am pretty sure picking an apple from a tree in a public space (but can be privately owned) for direct consumption is legal in Germany. Weird but understandable that you need a law for that.
Not just crime but in large parts of the country it's a popular myth that they can shoot you for being on their property. They can't, that's ridiculous, but Hollywood and popular myth won't let it die.
Also, legality doesn't change the odds of some old white dude taking pot shots from his porch at strange noises, because of precisely the same popular myth
ironically i think this is technically not covered by nordic "right to roam" as that says you should avoid areas near housing, however if anyone tries to raise a stink about people picking fruits from public trees then everyone is going to tell them to shut up and stop being a miserable idiot.