This scenario is not at all uncommon. You will see No Entry/Prohibition signs on many types of trains, including commuter, subway, regional, etc. Yet, the doors are fully functional and easy to operate.
In these cases, the train operator would really prefer you not cross between cars/carriages, especially when the trail is moving, but the doors must remain accessible for evacuation purposes.