Study of the order-to-chaos transition in 174W with the AGATA-demonstrator