As with most countries, it will depend on where you are located.  There are no pervasive security issues in either country.  But if you are in Bangkok you will want to avoid certain areas of the city at night.  Bali can seem safer due its rural nature, but crime can occur anywhere.