Section 18. Whoever without right knowingly stands or walks on an electric railroad track not within the limits of a highway shall forfeit not less than five nor more than fifty dollars.