Correct answer: Within 100 feet of it when you can't see 400 feet down the tracks both ways
The 15 mph limit applies within 100 feet of a crossing when your view of the tracks is less than 400 feet each way, unless the crossing has gates, signals, or a flagger.
Source: Section 7: Laws and Rules of the Road β Speed Limits in Specific Areas