How to make alarm or show popup message
Sorry I do not understand your question. Do you expect that once a task is N time before due dute, User browser (the one who has it assigned?) triggers a popup / toast to notify (or any other frontend notification) ?
From process perspective, you can do that with a "Non interrumpting timer event" that will trigger a new branch in the process (task will continue to be in Ready state).