Court remands farmer for threatening teachers