What they did may have been “dumb shit”, but the news article doesn’t say enough to know that it was. There are good reasons to drive around a closed gate with its lights going. For example, there is a neighborhood a couple of miles from here that includes a restaurant, but it is accessed by only one road, which has a railroad crossing. One evening we left the restaurant and the gates came down as we approached the crossing, and a train came toward the crossing but slowed and stopped about 60 feet away. Two engineers climbed down out of the still-running locomotive and walked along the tracks to the intersection, then headed out of the neighborhood, turned right at the next street, and walked into a bar, leaving the gates down. We waited around a while, and I got out and looked around, and gave up, as I couldn’t see any other trains and there was no sign of the engineers, and drove around the gates, with their lights flashing. I actually had to do some back and forth to maneuver between them because it was tight quarters.
Going through a closed gate can look safer than it is, too. A parked train can trigger the gates to close, but there can be more tracks behind it, and a fast train can appear from behind the parked one much faster than you can respond to. This sometimes nails even pedestrians, who have much better sight and sound clues than drivers.
Sometimes gates are closed and flashing for no apparent reason. A single track crossing near my workplace has about a mile of straight track visible on both sides, and sometimes it’s down and flashing with no train visible or audible, and sometimes I’ll wait for a minute but not for long.
A friend, when he finished college, drove his stuff and that of several other students to another city in a rented truck. He got stopped, first in line, at a crossing gate, and the train went by. The gate went up. He pulled forward, and the gate suddenly came down again, between the cab and the body of the truck, and another train appeared coming rapidly around the bend, not very far away. So, he kept going, breaking the gate and lodging it between the cab and the body, and for some reason was able to go far enough to get clear of the intersection without breaking the cable for the lights, which were still all flashing away as if on a Christmas tree. Just to complete the scene, there was a cop that had been on the other side of the intersection, also waiting to cross. But fortunately the cop had seen every single detail and gave him no trouble at all, and helped get everything unstuck and kept him from getting in any trouble.
Anyway, I think there are many things that can go wrong with the whole scheme of closing gates to keep people safe.