As the documentation shows, RAISE is a function, not a statement, so it cannot be used directly in the trigger body.
To use a function in a statement, use, for example, a SELECT statement:
CREATE TRIGGER abort_insert_to_my_tbl
BEFORE INSERT ON my_tbl
BEGIN
SELECT RAISE(ABORT, 'You can''t add records to my_tbl');
END;