It is quite dangerous. Even small rocks can be life-threatening on a highway because of their relative velocity.
Just after the Southern Expressway was opened to the public, a local organizer of JVP in the Bandaragama area was caught by the police while throwing stones at vehicles.