SPFL chief executive Neil Doncaster has warned Hearts they could harm other clubs in Scotland if they take legal action following their relegation from the top flight.