I think this way it is difficult to add more Roman digits like x to fake a higher amount than prescribed.
The letter j seems to be an additional security because i as a letter is narrow and one could perhaps squash in one or two more i's. The instruction also mentions that the number of dots is important, if the number of i and j is not the same as the number of dots above the line, the apothecary should assume an error.
It's just difficult, but not impossible.
This said, such tampering is in my jurisdiction punishable by law (Art. 251 Forgery of a document), see https://www.fedlex.admin.ch/eli/cc/54/757_781_799/en#art_251
I am sure in Common Law jurisdiction forgery of documents is also punishable.
So such things are defended by a two-pronged approach: Make it difficult and forbid it.
A horizontal square bracket would have been a more effective deterrent than just a line.
scnr
The paragraph you mention seems to worry more about mistakes more than tempering attempts though (taking 10x the dose prescribed could indeed be problematic)
I regularly see verbiage like "person A promises to pay person B 100 (in words, one hundred) zloty upon termination of this contract."