Question & answer:
This is no problem at all. You can buy tickets until 5 pm. Then you can visit the museum until 6 pm. If you don’t have time for a beer tasting or don’t feel like doing one afterwards, you can always come back another day. Your ticket remains valid!