A WA Liberal promise to give magistrates the power to mandate drug rehabilitation has been described as ‘dangerous’ by Premier Roger Cook.