Please get to ER or call 911 if you feel you are in immediate danger of hurting yourself or others.
I doubt you would get admitted against your will if you told pdoc about your thoughts. Having sui thoughts is fairly normal with MI. So as someone up there stated, if the thoughts are bothering you, do tell. Even if you have a plan, tell.