If on 1 ticket not risky at all. 1h30min is more the sufficient for this transfer. TK will rebook you on the next flight to AMM if incoming Thai Airways flight is late. Nothing to worry about. If on separate tickets it is more risky but still most likely you will make it.
You can use the the dedicated short connection boarding pass and security checks at IST; in my experience there is no queue. Just look out for the signs when you disembark the aircraft and have your onward BP ready for inspection.