Pulau Ubin has no official opening hours because people live on the island so it's fine to walk about anytime. However, the ferries from mainland Singapore only operate during daylight hours (roughly from 7am to 7pm), so you will only be able to arrive and leave the island during these times. You can camp on the island, and if so you're free to wander around after dark (though remember to bring a light).