The US has 14 CFR 91.13 about "careless or reckless" operation of aircraft, as a sort of catch-all for activities which are not explicitly prohibited by the regulations but which are still a bad idea and risks to, or actually, puts others in danger:
§ 91.13 Careless or reckless operation.
(a) Aircraft operations for the purpose of air navigation. No person may operate an aircraft in a careless or reckless manner so as to endanger the life or property of another.
(b) Aircraft operations other than for the purpose of air navigation. No person may operate an aircraft, other than for the purpose of air navigation, on any part of the surface of an airport used by aircraft for air commerce (including areas used by those aircraft for receiving or discharging persons or cargo), in a careless or reckless manner so as to endanger the life or property of another.
I have a hard time imagining that Europe doesn't have a similar statute, but I can't seem to find anything looking through Part-FCL or my local regulations.
What is the EASA or EU regulation corresponding to the US FAR 91.13?