Disclaimer: The below text is for educational & entertainment purposes only.
Choose a section of railway tracks with a degree of privacy. Using no less than 12 feet of large gauge copper wire (plastic casing removed), wrap each end of the wire around the two railway ties and back onto themselves, ensuring as much contact with the railway tie as possible. As soon as both ends are securely in place, the circuit will be complete and the railway traffic signals in the area will signal that there is a barrier on the tracks. Leave promptly.