Growing a ‘cosmic beast’: observations and simulations of MACS J0717.5+3745